Explorar el Código

split unittest hxml files

Andy Li hace 11 años
padre
commit
02a67d0884

+ 4 - 0
tests/unit/compile-as3.hxml

@@ -0,0 +1,4 @@
+compile-each.hxml
+-main unit.Test
+-as3 as3
+-cmd mxmlc -static-link-runtime-shared-libraries=true -debug as3/__main__.as --output unit9_as3.swf

+ 4 - 0
tests/unit/compile-cpp.hxml

@@ -0,0 +1,4 @@
+compile-each.hxml
+-main unit.Test
+-cpp cpp
+-D NO_PRECOMPILED_HEADERS

+ 4 - 0
tests/unit/compile-cs-unsafe.hxml

@@ -0,0 +1,4 @@
+compile-each.hxml
+-main unit.Test
+-D unsafe
+-cs cs_unsafe

+ 3 - 0
tests/unit/compile-cs.hxml

@@ -0,0 +1,3 @@
+compile-each.hxml
+-main unit.Test
+-cs cs

+ 7 - 0
tests/unit/compile-each.hxml

@@ -0,0 +1,7 @@
+-D macro-times
+-debug
+-cp ..
+-resource res1.txt
+-resource res2.bin
+--no-opt
+-dce full

+ 2 - 0
tests/unit/compile-exe-runner.hxml

@@ -0,0 +1,2 @@
+-main RunExe
+-neko runexe.n

+ 5 - 0
tests/unit/compile-flash8.hxml

@@ -0,0 +1,5 @@
+compile-each.hxml
+-main unit.Test
+-swf-header 300:300:30:FFFFFF
+-swf-version 8
+-swf unit8.swf

+ 4 - 0
tests/unit/compile-flash9.hxml

@@ -0,0 +1,4 @@
+compile-each.hxml
+-main unit.Test
+-swf-version 11
+-swf unit9.swf

+ 2 - 0
tests/unit/compile-java-runner.hxml

@@ -0,0 +1,2 @@
+-main RunJava
+-neko runjava.n

+ 9 - 0
tests/unit/compile-java.hxml

@@ -0,0 +1,9 @@
+#java native build
+-cmd "haxelib run hxjava native_java/hxjava_build.txt --out native_java/native"
+
+--next
+
+compile-each.hxml
+-main unit.Test
+-java java
+-java-lib native_java/native.jar

+ 3 - 0
tests/unit/compile-js.hxml

@@ -0,0 +1,3 @@
+compile-each.hxml
+unit.Test
+-js unit.js

+ 3 - 0
tests/unit/compile-macro.hxml

@@ -0,0 +1,3 @@
+compile-each.hxml
+-main unit.Test
+--interp

+ 4 - 0
tests/unit/compile-neko.hxml

@@ -0,0 +1,4 @@
+compile-each.hxml
+-D neko_v2
+-main unit.Test
+-neko unit.n

+ 3 - 0
tests/unit/compile-php.hxml

@@ -0,0 +1,3 @@
+compile-each.hxml
+-main unit.Test
+-php php

+ 3 - 0
tests/unit/compile-remoting.hxml

@@ -0,0 +1,3 @@
+-cp ..
+-main unit.RemotingServer
+-neko remoting.n

+ 19 - 82
tests/unit/compile.hxml

@@ -1,90 +1,27 @@
-#remoting
--cp ..
--main unit.RemotingServer
--neko remoting.n
+# unittest helpers
 
-#exe-runner
---next
--main RunExe
--neko runexe.n
-
-#java-runner
---next
--main RunJava
--neko runjava.n
-
-#each
---next
--D macro-times
--debug
--cp ..
--resource res1.txt
--resource res2.bin
---no-opt
--dce full
---each
-
-#flash8
--main unit.Test
--swf-header 300:300:30:FFFFFF
--swf-version 8
--swf unit8.swf
-
-#flash9
---next
--main unit.Test
--swf-version 11
--swf unit9.swf
-
-#js
---next
-unit.Test
--js unit.js
+# remoting
+compile-remoting.hxml
 
-#neko
+# exe-runner
 --next
--D neko_v2
--main unit.Test
--neko unit.n
+compile-exe-runner.hxml
 
-#macro
+# java-runner
 --next
--main unit.Test
---interp
+compile-java-runner.hxml
 
-#php
---next
--main unit.Test
--php php
-
-#as3
---next
--main unit.Test
--as3 as3
--cmd mxmlc -static-link-runtime-shared-libraries=true -debug as3/__main__.as --output unit9_as3.swf
-
-#cpp
---next
--main unit.Test
--cpp cpp
--D NO_PRECOMPILED_HEADERS
 
-#java native build
--cmd "haxelib run hxjava native_java/hxjava_build.txt --out native_java/native"
+# targets
 
-#java
---next
--main unit.Test
--java java
--java-lib native_java/native.jar
-
-#cs
---next
--main unit.Test
--cs cs
-
-#cs_unsafe
---next
--main unit.Test
--D unsafe
--cs cs_unsafe
+--next compile-flash8.hxml
+--next compile-flash9.hxml
+--next compile-js.hxml
+--next compile-neko.hxml
+--next compile-macro.hxml
+--next compile-php.hxml
+--next compile-as3.hxml
+--next compile-cpp.hxml
+--next compile-java.hxml
+--next compile-cs.hxml
+--next compile-cs-unsafe.hxml