if JAVA_HOME not defined do not run jni tests
@@ -30,6 +30,10 @@ if not skip_cpp_tests:
print("Starting tests")
sys.stdout.flush()
+
+
+if "JAVA_HOME" in os.environ:
+ print("Machine has java/jdk")
subprocess.check_call(["cargo", "test"], cwd = "macroslib", shell = False)
subprocess.check_call(["cargo", "test"], cwd = "jni_tests", shell = False)
subprocess.check_call(["python", "run_tests.py", "--skip-android-test"], cwd = "jni_tests", shell = False)
