Browse Source

run macro interpreter sys tests on CI

Simon Krajewski 10 years ago
parent
commit
122c2b468d
3 changed files with 9 additions and 0 deletions
  1. 3 0
      tests/RunCi.hx
  2. 2 0
      tests/sys/compile-macro.hxml
  3. 4 0
      tests/sys/src/TestSys.hx

+ 3 - 0
tests/RunCi.hx

@@ -458,6 +458,9 @@ class RunCi {
 							haxelibRun(["dox", "-o", "bin/api.zip", "-i", "bin/xml"]);
 					}
 
+					changeDirectory(sysDir);
+					runCommand("haxe", ["compile-macro.hxml"]);
+
 					//BYTECODE
 					switch (ci) {
 						case null:

+ 2 - 0
tests/sys/compile-macro.hxml

@@ -0,0 +1,2 @@
+compile-each.hxml
+--interp

+ 4 - 0
tests/sys/src/TestSys.hx

@@ -1,11 +1,15 @@
 class TestSys extends haxe.unit.TestCase {
+	// it receives the arguments passed to Haxe command line
+	#if !interp
 	function testArgs() {
 		var args = Sys.args();
+		trace(args);
 		assertEquals(3, args.length);
 		assertEquals("foo", args[0]);
 		assertEquals("12", args[1]);
 		assertEquals("a b  %PATH% $HOME c\\&<>[\"]#{}|%$", args[2]);
 	}
+	#end
 
 	function testEnv() {
 		#if !java