Sfoglia il codice sorgente

[tests] test all JVM dynamic levels

Simon Krajewski 5 anni fa
parent
commit
36263b3926
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7 4
      tests/runci/targets/Jvm.hx

+ 7 - 4
tests/runci/targets/Jvm.hx

@@ -5,11 +5,14 @@ import runci.Config.*;
 
 class Jvm {
 	static public function run(args:Array<String>) {
-		runCommand("haxe", ["compile-jvm.hxml"].concat(args));
-		runCommand("java", ["-jar", "bin/unit.jar"]);
+		for (level in 0...3) {
+			var args = args.concat(["-D", "jvm.dynamic-level=" + level]);
+			runCommand("haxe", ["compile-jvm.hxml"].concat(args));
+			runCommand("java", ["-jar", "bin/unit.jar"]);
 
-		runCommand("haxe", ["compile-jvm.hxml","-dce","no"].concat(args));
-		runCommand("java", ["-jar", "bin/unit.jar"]);
+			runCommand("haxe", ["compile-jvm.hxml","-dce","no"].concat(args));
+			runCommand("java", ["-jar", "bin/unit.jar"]);
+		}
 
 		changeDirectory(sysDir);
 		runCommand("haxe", ["compile-jvm.hxml"].concat(args));