浏览代码

[tests] test all JVM dynamic levels

Simon Krajewski 5 年之前
父节点
当前提交
36263b3926
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      tests/runci/targets/Jvm.hx

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

@@ -5,11 +5,14 @@ import runci.Config.*;
 
 
 class Jvm {
 class Jvm {
 	static public function run(args:Array<String>) {
 	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);
 		changeDirectory(sysDir);
 		runCommand("haxe", ["compile-jvm.hxml"].concat(args));
 		runCommand("haxe", ["compile-jvm.hxml"].concat(args));