Selaa lähdekoodia

[ci] make it easier to run hl unit tests locally again

Rudy Ges 1 vuosi sitten
vanhempi
commit
c4e08e90ef
3 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. 4 1
      tests/runci/targets/Hl.hx
  2. 1 0
      tests/unit/compile-hl.hxml
  3. 6 0
      tests/unit/compile-hlc.hxml

+ 4 - 1
tests/runci/targets/Hl.hx

@@ -106,7 +106,10 @@ class Hl {
 	static public function run(args:Array<String>) {
 		getHlDependencies();
 
-		buildAndRun("compile-hl.hxml", "bin/unit", args);
+		runCommand("haxe", ["compile-hl.hxml"].concat(args));
+		runCommand(hlBinary, ['bin/unit.hl']);
+		runCommand("haxe", ["compile-hlc.hxml"].concat(args));
+		buildAndRunHlc("bin/hlc", "unit", runCommand);
 
 		changeDirectory(threadsDir);
 		buildAndRun("build.hxml", "export/threads");

+ 1 - 0
tests/unit/compile-hl.hxml

@@ -1,5 +1,6 @@
 compile-each.hxml
 --main unit.TestMain
+-hl bin/unit.hl
 #-D interp
 -D hl-check
 -D hl-ver=1.13.0

+ 6 - 0
tests/unit/compile-hlc.hxml

@@ -0,0 +1,6 @@
+compile-each.hxml
+--main unit.TestMain
+-hl bin/hlc/unit.c
+#-D interp
+-D hl-check
+-D hl-ver=1.13.0