Explorar el Código

[cs] run all(?) combinations of C# output on travis

Dan Korostelev hace 9 años
padre
commit
2043bed271
Se han modificado 1 ficheros con 10 adiciones y 20 borrados
  1. 10 20
      tests/RunCi.hx

+ 10 - 20
tests/RunCi.hx

@@ -1110,30 +1110,20 @@ class RunCi {
 								"";
 						};
 
-						runCommand("haxe", ['compile-cs$compl.hxml']);
-						runCs("bin/cs/bin/Test-Debug.exe");
-
-						runCommand("haxe", ['compile-cs$compl.hxml','-D','fast_cast']);
-						runCs("bin/cs/bin/Test-Debug.exe");
-
-						runCommand("haxe", ['compile-cs$compl.hxml','-dce','no','-D','fast_cast']);
-						runCs("bin/cs/bin/Test-Debug.exe");
-
-						runCommand("haxe", ['compile-cs-unsafe$compl.hxml','-D','fast_cast']);
-						runCs("bin/cs_unsafe/bin/Test-Debug.exe");
-
-						runCommand("haxe", ['compile-cs$compl.hxml',"-D","erase_generics",'-D','fast_cast']);
-						runCs("bin/cs/bin/Test-Debug.exe");
+						for (fastcast in [[], ["-D", "fast_cast"]])
+						for (noroot in [[], ["-D", "no_root"]])
+						for (erasegenerics in [[], ["-D", "erase_generics"]])
+						{
+							runCommand("haxe", ['compile-cs$compl.hxml'].concat(fastcast).concat(erasegenerics).concat(noroot));
+							runCs("bin/cs/bin/Test-Debug.exe");
 
-						runCommand("haxe", ['compile-cs-unsafe$compl.hxml',"-D","erase_generics",'-D','fast_cast']);
-						runCs("bin/cs_unsafe/bin/Test-Debug.exe");
+							runCommand("haxe", ['compile-cs-unsafe$compl.hxml'].concat(fastcast).concat(erasegenerics).concat(noroot));
+							runCs("bin/cs_unsafe/bin/Test-Debug.exe");
+						}
 
-						runCommand("haxe", ['compile-cs$compl.hxml',"-D","no_root",'-D','fast_cast']);
+						runCommand("haxe", ['compile-cs$compl.hxml','-dce','no']);
 						runCs("bin/cs/bin/Test-Debug.exe");
 
-						runCommand("haxe", ['compile-cs-unsafe$compl.hxml',"-D","no_root","-D","erase_generics",'-D','fast_cast']);
-						runCs("bin/cs_unsafe/bin/Test-Debug.exe");
-
 						changeDirectory(sysDir);
 						runCommand("haxe", ["compile-cs.hxml",'-D','fast_cast']);
 						runCs("bin/cs/bin/Main-Debug.exe", []);