ソースを参照

restructure unit tests: sources in src, output in bin

Simon Krajewski 11 年 前
コミット
4f5d4a230d
100 ファイル変更93 行追加67 行削除
  1. 2 1
      .gitignore
  2. 5 2
      common.ml
  3. 5 0
      main.ml
  4. 16 12
      tests/RunTravis.hx
  5. 1 0
      tests/misc/pythonImport/.gitignore
  6. 41 0
      tests/misc/pythonImport/Main.hx
  7. 2 0
      tests/misc/pythonImport/compile.hxml
  8. 0 0
      tests/misc/pythonImport/native_python/__init__.py
  9. 0 0
      tests/misc/pythonImport/native_python/sample.py
  10. 2 2
      tests/unit/compile-as3.hxml
  11. 1 1
      tests/unit/compile-cpp.hxml
  12. 1 1
      tests/unit/compile-cs-unsafe.hxml
  13. 1 1
      tests/unit/compile-cs.hxml
  14. 1 1
      tests/unit/compile-each.hxml
  15. 2 1
      tests/unit/compile-exe-runner.hxml
  16. 1 1
      tests/unit/compile-flash8.hxml
  17. 1 1
      tests/unit/compile-flash9.hxml
  18. 2 1
      tests/unit/compile-java-runner.hxml
  19. 1 1
      tests/unit/compile-java.hxml
  20. 1 1
      tests/unit/compile-js.hxml
  21. 1 1
      tests/unit/compile-neko.hxml
  22. 1 1
      tests/unit/compile-php.hxml
  23. 1 1
      tests/unit/compile-python.hxml
  24. 1 1
      tests/unit/compile-remoting.hxml
  25. BIN
      tests/unit/native_python/__pycache__/__init__.cpython-33.pyc
  26. BIN
      tests/unit/native_python/__pycache__/sample.cpython-33.pyc
  27. 0 0
      tests/unit/src/RunExe.hx
  28. 1 1
      tests/unit/src/RunJava.hx
  29. 0 0
      tests/unit/src/unit/MyAbstract.hx
  30. 0 0
      tests/unit/src/unit/MyClass.hx
  31. 0 0
      tests/unit/src/unit/MyEnum.hx
  32. 0 0
      tests/unit/src/unit/MyInterface.hx
  33. 0 0
      tests/unit/src/unit/MyMacro.hx
  34. 0 0
      tests/unit/src/unit/MySpodClass.hx
  35. 0 0
      tests/unit/src/unit/MySubClass.hx
  36. 0 0
      tests/unit/src/unit/MyUsing1.hx
  37. 0 0
      tests/unit/src/unit/MyUsing2.hx
  38. 0 0
      tests/unit/src/unit/RemotingApi.hx
  39. 0 0
      tests/unit/src/unit/RemotingServer.hx
  40. 0 0
      tests/unit/src/unit/RunSauceLabs.hx
  41. 0 0
      tests/unit/src/unit/Test.hx
  42. 0 0
      tests/unit/src/unit/TestBasetypes.hx
  43. 0 0
      tests/unit/src/unit/TestBytes.hx
  44. 0 0
      tests/unit/src/unit/TestCSharp.hx
  45. 0 0
      tests/unit/src/unit/TestDCE.hx
  46. 0 0
      tests/unit/src/unit/TestEReg.hx
  47. 0 0
      tests/unit/src/unit/TestGADT.hx
  48. 0 0
      tests/unit/src/unit/TestGeneric.hx
  49. 0 0
      tests/unit/src/unit/TestIO.hx
  50. 0 0
      tests/unit/src/unit/TestInt64.hx
  51. 1 1
      tests/unit/src/unit/TestIssues.hx
  52. 0 0
      tests/unit/src/unit/TestJava.hx
  53. 0 0
      tests/unit/src/unit/TestJson.hx
  54. 0 0
      tests/unit/src/unit/TestLocals.hx
  55. 0 0
      tests/unit/src/unit/TestMatch.hx
  56. 0 0
      tests/unit/src/unit/TestMeta.hx
  57. 0 0
      tests/unit/src/unit/TestMisc.hx
  58. 0 0
      tests/unit/src/unit/TestOps.hx
  59. 0 0
      tests/unit/src/unit/TestOrder.hx
  60. 0 0
      tests/unit/src/unit/TestOverloads.hx
  61. 0 0
      tests/unit/src/unit/TestPhp.hx
  62. 0 33
      tests/unit/src/unit/TestPython.hx
  63. 0 0
      tests/unit/src/unit/TestReflect.hx
  64. 0 0
      tests/unit/src/unit/TestRemoting.hx
  65. 0 0
      tests/unit/src/unit/TestResource.hx
  66. 0 0
      tests/unit/src/unit/TestSerialize.hx
  67. 1 1
      tests/unit/src/unit/TestSpecification.hx
  68. 0 0
      tests/unit/src/unit/TestSpod.hx
  69. 0 0
      tests/unit/src/unit/TestThreads.hx
  70. 0 0
      tests/unit/src/unit/TestType.hx
  71. 0 0
      tests/unit/src/unit/TestUInt.hx
  72. 0 0
      tests/unit/src/unit/TestUnspecified.hx
  73. 0 0
      tests/unit/src/unit/TestXML.hx
  74. 0 0
      tests/unit/src/unit/UnitBuilder.hx
  75. 0 0
      tests/unit/src/unit/issues/Issue1492.hx
  76. 0 0
      tests/unit/src/unit/issues/Issue1497.hx
  77. 0 0
      tests/unit/src/unit/issues/Issue1810.hx
  78. 0 0
      tests/unit/src/unit/issues/Issue1845.hx
  79. 0 0
      tests/unit/src/unit/issues/Issue1925.hx
  80. 0 0
      tests/unit/src/unit/issues/Issue1997.hx
  81. 0 0
      tests/unit/src/unit/issues/Issue2003.hx
  82. 0 0
      tests/unit/src/unit/issues/Issue2044.hx
  83. 0 0
      tests/unit/src/unit/issues/Issue2048.hx
  84. 0 0
      tests/unit/src/unit/issues/Issue2049.hx
  85. 0 0
      tests/unit/src/unit/issues/Issue2063.hx
  86. 0 0
      tests/unit/src/unit/issues/Issue2086.hx
  87. 0 0
      tests/unit/src/unit/issues/Issue2130.hx
  88. 0 0
      tests/unit/src/unit/issues/Issue2152.hx
  89. 0 0
      tests/unit/src/unit/issues/Issue2157.hx
  90. 0 0
      tests/unit/src/unit/issues/Issue2184.hx
  91. 0 0
      tests/unit/src/unit/issues/Issue2224.hx
  92. 0 0
      tests/unit/src/unit/issues/Issue2235.hx
  93. 0 0
      tests/unit/src/unit/issues/Issue2254.hx
  94. 0 0
      tests/unit/src/unit/issues/Issue2271.hx
  95. 0 0
      tests/unit/src/unit/issues/Issue2272.hx
  96. 0 0
      tests/unit/src/unit/issues/Issue2281.hx
  97. 0 0
      tests/unit/src/unit/issues/Issue2282.hx
  98. 0 0
      tests/unit/src/unit/issues/Issue2304.hx
  99. 0 0
      tests/unit/src/unit/issues/Issue2317.hx
  100. 0 0
      tests/unit/src/unit/issues/Issue2343.hx

+ 2 - 1
.gitignore

@@ -58,7 +58,7 @@ build.bat
 tests/unit/compile.php.hxml
 /extra/*.xml
 tests/optimization/testopt.js
-tests/unit/native_python/__pycache__
+tests/misc/pythonImport/native_python/__pycache__
 tests/unit/unit.py
 tests/unit/unit.py.res1.txt
 tests/unit/unit.py.res2.bin
@@ -66,3 +66,4 @@ tests/unit/unit.py.res2.bin
 tests/sys/bin/
 tests/optimization/dump/
 tests/misc/projects/Issue3102/test.n
+tests/unit/bin/

+ 5 - 2
common.ml

@@ -956,8 +956,11 @@ let rec mkdir_recursive base dir_list =
 
 let mkdir_from_path path =
 	let parts = Str.split_delim (Str.regexp "[\\/]+") path in
-	let dir_list = List.rev (List.tl (List.rev parts)) in
-	mkdir_recursive "" dir_list
+	match parts with
+		| [] -> (* path was "" *) ()
+		| _ ->
+			let dir_list = List.rev (List.tl (List.rev parts)) in
+			mkdir_recursive "" dir_list
 
 let mem_size v =
 	Objsize.size_with_headers (Objsize.objsize v [] [])

+ 5 - 0
main.ml

@@ -1487,6 +1487,11 @@ try
 		if Common.defined com Define.Dump then Codegen.dump_types com;
 		if Common.defined com Define.DumpDependencies then Codegen.dump_dependencies com;
 		t();
+		if not !no_output then begin match com.platform with
+			| Neko when !interp -> ()
+			| Cpp | Cs | Java | Php -> Common.mkdir_from_path (com.file ^ "/.")
+			| _ -> Common.mkdir_from_path com.file
+		end;
 		(match com.platform with
 		| _ when !no_output ->
 			if !interp then begin

+ 16 - 12
tests/RunTravis.hx

@@ -413,7 +413,7 @@ class RunTravis {
 				//}
 			case Neko:
 				runCommand("haxe", ["compile-neko.hxml","-D","travis"]);
-				runCommand("neko", ["unit.n"]);
+				runCommand("neko", ["bin/unit.n"]);
 
 				changeDirectory(sysDir);
 				runCommand("haxe", ["compile-neko.hxml","-D","travis"]);
@@ -422,25 +422,29 @@ class RunTravis {
 			case Php:
 				getPhpDependencies();
 				runCommand("haxe", ["compile-php.hxml","-D","travis"]);
-				runCommand("php", ["php/index.php"]);
+				runCommand("php", ["bin/php/index.php"]);
 			case Python:
 				getPythonDependencies();
 				runCommand("haxe", ["compile-python.hxml","-D","travis"]);
-				runCommand("python3", ["unit.py"]);
+				runCommand("python3", ["bin/unit.py"]);
 
 				changeDirectory(sysDir);
 				runCommand("haxe", ["compile-python.hxml","-D","travis"]);
 				changeDirectory("bin/python");
 				runCommand("python3", ["sys.py"].concat(args));
+
+				changeDirectory(miscDir + "pythonImport");
+				runCommand("haxe", ["compile.hxml"]);
+				runCommand("python3", ["test.py"]);
 			case Cpp:
 				getCppDependencies();
 				runCommand("haxe", ["compile-cpp.hxml","-D","travis"]);
-				runCommand("./cpp/Test-debug", []);
+				runCommand("./bin/cpp/Test-debug", []);
 
 				runCommand("rm", ["-rf", "cpp"]);
 
 				runCommand("haxe", ["compile-cpp.hxml", "-D", "HXCPP_M64","-D","travis"]);
-				runCommand("./cpp/Test-debug", []);
+				runCommand("./bin/cpp/Test-debug", []);
 
 				changeDirectory(sysDir);
 				runCommand("haxe", ["compile-cpp.hxml","-D","travis"]);
@@ -451,7 +455,7 @@ class RunTravis {
 
 				for (flatten in [true, false]) {
 					runCommand("haxe", ["compile-js.hxml","-D","travis"].concat(flatten ? ["-D", "js-flatten"] : []));
-					runCommand("node", ["-e", "var unit = require('./unit.js').unit; unit.Test.main(); process.exit(unit.Test.success ? 0 : 1);"]);
+					runCommand("node", ["-e", "var unit = require('./bin/unit.js').unit; unit.Test.main(); process.exit(unit.Test.success ? 0 : 1);"]);
 				}
 
 				if (Sys.getEnv("TRAVIS_SECURE_ENV_VARS") == "true" && systemName == "Linux") {
@@ -473,23 +477,23 @@ class RunTravis {
 			case Java:
 				getJavaDependencies();
 				runCommand("haxe", ["compile-java.hxml","-D","travis"]);
-				runCommand("java", ["-jar", "java/Test-Debug.jar"]);
+				runCommand("java", ["-jar", "bin/java/Test-Debug.jar"]);
 			case Cs:
 				getCsDependencies();
 
 				runCommand("haxe", ["compile-cs.hxml","-D","travis"]);
-				runCommand("mono", ["cs/bin/Test-Debug.exe"]);
+				runCommand("mono", ["bin/cs/bin/Test-Debug.exe"]);
 
 				runCommand("haxe", ["compile-cs-unsafe.hxml","-D","travis"]);
-				runCommand("mono", ["cs_unsafe/bin/Test-Debug.exe"]);
+				runCommand("mono", ["bin/cs_unsafe/bin/Test-Debug.exe"]);
 			case Flash9:
 				setupFlashPlayerDebugger();
 				runCommand("haxe", ["compile-flash9.hxml", "-D", "fdb","-D","travis"]);
-				runFlash("unit9.swf");
+				runFlash("bin/unit9.swf");
 			case Flash8:
 				setupFlashPlayerDebugger();
 				runCommand("haxe", ["compile-flash8.hxml", "-D", "fdb","-D","travis"]);
-				runFlash("unit8.swf");
+				runFlash("bin/unit8.swf");
 			case As3:
 				setupFlashPlayerDebugger();
 
@@ -506,7 +510,7 @@ class RunTravis {
 				runCommand("mxmlc", ["--version"]);
 
 				runCommand("haxe", ["compile-as3.hxml", "-D", "fdb","-D","travis"]);
-				runFlash("unit9_as3.swf");
+				runFlash("bin/unit9_as3.swf");
 			case ThirdParty:
 				getPhpDependencies();
 				getJavaDependencies();

+ 1 - 0
tests/misc/pythonImport/.gitignore

@@ -0,0 +1 @@
+/test.py

+ 41 - 0
tests/misc/pythonImport/Main.hx

@@ -0,0 +1,41 @@
+@:pythonImport("native_python.sample", "A")
+extern class ExternClass {
+    function new();
+    function f(v:Int):Int;
+}
+
+@:pythonImport("native_python.sample", "A.Nested")
+extern class ExternNestedClass {
+    function new();
+    function f(v:Int):Int;
+}
+
+@:pythonImport("native_python.sample")
+extern class ExternModule {
+    static function f(v:Int):Int;
+}
+
+@:pythonImport("inexistant", "AZAZA", ignoreError=true)
+extern class InexistantExtern1 {}
+
+@:pythonImport("inexistant", "AZAZA.ZAZA", ignoreError=true)
+extern class InexistantExtern2 {}
+
+@:pythonImport("inexistant", ignoreError=true)
+extern class InexistantExtern3 {}
+
+class Main extends haxe.unit.TestCase {
+
+    function testExtern() {
+        assertEquals(new ExternClass().f(1), 2);
+        assertEquals(new ExternNestedClass().f(1), 3);
+        assertEquals(ExternModule.f(1), 4);
+    }
+
+    static function main() {
+        var runner = new haxe.unit.TestRunner();
+        runner.add(new Main());
+        var code = runner.run() ? 0 : 1;
+        Sys.exit(code);
+    }
+}

+ 2 - 0
tests/misc/pythonImport/compile.hxml

@@ -0,0 +1,2 @@
+-main Main
+-python test.py

+ 0 - 0
tests/unit/native_python/__init__.py → tests/misc/pythonImport/native_python/__init__.py


+ 0 - 0
tests/unit/native_python/sample.py → tests/misc/pythonImport/native_python/sample.py


+ 2 - 2
tests/unit/compile-as3.hxml

@@ -1,4 +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
+-as3 bin/as3
+-cmd mxmlc -static-link-runtime-shared-libraries=true -debug bin/as3/__main__.as --output bin/unit9_as3.swf

+ 1 - 1
tests/unit/compile-cpp.hxml

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

+ 1 - 1
tests/unit/compile-cs-unsafe.hxml

@@ -6,5 +6,5 @@
 compile-each.hxml
 -main unit.Test
 -D unsafe
--cs cs_unsafe
+-cs bin/cs_unsafe
 -net-lib native_cs/bin/native_cs.dll

+ 1 - 1
tests/unit/compile-cs.hxml

@@ -5,5 +5,5 @@
 
 compile-each.hxml
 -main unit.Test
--cs cs
+-cs bin/cs
 -net-lib native_cs/bin/native_cs.dll

+ 1 - 1
tests/unit/compile-each.hxml

@@ -1,6 +1,6 @@
 -D macro-times
 -debug
--cp ..
+-cp src
 -cp "C:\Program Files\The Haxe Effect\src/dev/null"
 -resource res1.txt
 -resource res2.bin

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

@@ -1,2 +1,3 @@
+-cp src
 -main RunExe
--neko runexe.n
+-neko bin/runexe.n

+ 1 - 1
tests/unit/compile-flash8.hxml

@@ -2,4 +2,4 @@ compile-each.hxml
 -main unit.Test
 -swf-header 300:300:30:FFFFFF
 -swf-version 8
--swf unit8.swf
+-swf bin/unit8.swf

+ 1 - 1
tests/unit/compile-flash9.hxml

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

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

@@ -1,2 +1,3 @@
+-cp src
 -main RunJava
--neko runjava.n
+-neko bin/runjava.n

+ 1 - 1
tests/unit/compile-java.hxml

@@ -5,7 +5,7 @@
 
 compile-each.hxml
 -main unit.Test
--java java
+-java bin/java
 -java-lib native_java/native.jar
 -java-lib java_drivers/mysql-connector-java-5.1.32-bin.jar
 -java-lib java_drivers/sqlite-jdbc-3.7.2.jar

+ 1 - 1
tests/unit/compile-js.hxml

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

+ 1 - 1
tests/unit/compile-neko.hxml

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

+ 1 - 1
tests/unit/compile-php.hxml

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

+ 1 - 1
tests/unit/compile-python.hxml

@@ -1,3 +1,3 @@
 compile-each.hxml
 -main unit.Test
--python unit.py
+-python bin/unit.py

+ 1 - 1
tests/unit/compile-remoting.hxml

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

BIN
tests/unit/native_python/__pycache__/__init__.cpython-33.pyc


BIN
tests/unit/native_python/__pycache__/sample.cpython-33.pyc


+ 0 - 0
tests/unit/RunExe.hx → tests/unit/src/RunExe.hx


+ 1 - 1
tests/unit/RunJava.hx → tests/unit/src/RunJava.hx

@@ -1,7 +1,7 @@
 class RunJava {
 
 	static function main() {
-		var p = new sys.io.Process("java", ["-jar", neko.Web.getCwd() + "/java/Test-Debug.jar"]);
+		var p = new sys.io.Process("java", ["-jar", neko.Web.getCwd() + "/bin/java/Test-Debug.jar"]);
 		if( neko.Web.isModNeko )
 			neko.Web.setHeader("Content-Type","text/plain");
 		try {

+ 0 - 0
tests/unit/MyAbstract.hx → tests/unit/src/unit/MyAbstract.hx


+ 0 - 0
tests/unit/MyClass.hx → tests/unit/src/unit/MyClass.hx


+ 0 - 0
tests/unit/MyEnum.hx → tests/unit/src/unit/MyEnum.hx


+ 0 - 0
tests/unit/MyInterface.hx → tests/unit/src/unit/MyInterface.hx


+ 0 - 0
tests/unit/MyMacro.hx → tests/unit/src/unit/MyMacro.hx


+ 0 - 0
tests/unit/MySpodClass.hx → tests/unit/src/unit/MySpodClass.hx


+ 0 - 0
tests/unit/MySubClass.hx → tests/unit/src/unit/MySubClass.hx


+ 0 - 0
tests/unit/MyUsing1.hx → tests/unit/src/unit/MyUsing1.hx


+ 0 - 0
tests/unit/MyUsing2.hx → tests/unit/src/unit/MyUsing2.hx


+ 0 - 0
tests/unit/RemotingApi.hx → tests/unit/src/unit/RemotingApi.hx


+ 0 - 0
tests/unit/RemotingServer.hx → tests/unit/src/unit/RemotingServer.hx


+ 0 - 0
tests/unit/RunSauceLabs.hx → tests/unit/src/unit/RunSauceLabs.hx


+ 0 - 0
tests/unit/Test.hx → tests/unit/src/unit/Test.hx


+ 0 - 0
tests/unit/TestBasetypes.hx → tests/unit/src/unit/TestBasetypes.hx


+ 0 - 0
tests/unit/TestBytes.hx → tests/unit/src/unit/TestBytes.hx


+ 0 - 0
tests/unit/TestCSharp.hx → tests/unit/src/unit/TestCSharp.hx


+ 0 - 0
tests/unit/TestDCE.hx → tests/unit/src/unit/TestDCE.hx


+ 0 - 0
tests/unit/TestEReg.hx → tests/unit/src/unit/TestEReg.hx


+ 0 - 0
tests/unit/TestGADT.hx → tests/unit/src/unit/TestGADT.hx


+ 0 - 0
tests/unit/TestGeneric.hx → tests/unit/src/unit/TestGeneric.hx


+ 0 - 0
tests/unit/TestIO.hx → tests/unit/src/unit/TestIO.hx


+ 0 - 0
tests/unit/TestInt64.hx → tests/unit/src/unit/TestInt64.hx


+ 1 - 1
tests/unit/TestIssues.hx → tests/unit/src/unit/TestIssues.hx

@@ -4,7 +4,7 @@ using StringTools;
 
 class TestIssues {
 	macro static public function addIssueClasses() {
-		var dir = sys.FileSystem.readDirectory("issues");
+		var dir = sys.FileSystem.readDirectory("src/unit/issues");
 		var el = [];
 		function add(className:String) {
 			el.push(macro classes.push(new unit.issues.$className()));

+ 0 - 0
tests/unit/TestJava.hx → tests/unit/src/unit/TestJava.hx


+ 0 - 0
tests/unit/TestJson.hx → tests/unit/src/unit/TestJson.hx


+ 0 - 0
tests/unit/TestLocals.hx → tests/unit/src/unit/TestLocals.hx


+ 0 - 0
tests/unit/TestMatch.hx → tests/unit/src/unit/TestMatch.hx


+ 0 - 0
tests/unit/TestMeta.hx → tests/unit/src/unit/TestMeta.hx


+ 0 - 0
tests/unit/TestMisc.hx → tests/unit/src/unit/TestMisc.hx


+ 0 - 0
tests/unit/TestOps.hx → tests/unit/src/unit/TestOps.hx


+ 0 - 0
tests/unit/TestOrder.hx → tests/unit/src/unit/TestOrder.hx


+ 0 - 0
tests/unit/TestOverloads.hx → tests/unit/src/unit/TestOverloads.hx


+ 0 - 0
tests/unit/TestPhp.hx → tests/unit/src/unit/TestPhp.hx


+ 0 - 33
tests/unit/TestPython.hx → tests/unit/src/unit/TestPython.hx

@@ -84,32 +84,6 @@ private class B extends A {
     public function new() {}
 }
 
-@:pythonImport("native_python.sample", "A")
-extern class ExternClass {
-	function new();
-	function f(v:Int):Int;
-}
-
-@:pythonImport("native_python.sample", "A.Nested")
-extern class ExternNestedClass {
-	function new();
-	function f(v:Int):Int;
-}
-
-@:pythonImport("native_python.sample")
-extern class ExternModule {
-	static function f(v:Int):Int;
-}
-
-@:pythonImport("inexistant", "AZAZA", ignoreError=true)
-extern class InexistantExtern1 {}
-
-@:pythonImport("inexistant", "AZAZA.ZAZA", ignoreError=true)
-extern class InexistantExtern2 {}
-
-@:pythonImport("inexistant", ignoreError=true)
-extern class InexistantExtern3 {}
-
 class TestPython extends Test {
 
 	public function testDoWhileAsExpression () {
@@ -386,11 +360,4 @@ class TestPython extends Test {
 		eq(t.length, 2);
 	}
 
-	function testExtern()
-	{
-		eq(new ExternClass().f(1), 2);
-		eq(new ExternNestedClass().f(1), 3);
-		eq(ExternModule.f(1), 4);
-	}
-
 }

+ 0 - 0
tests/unit/TestReflect.hx → tests/unit/src/unit/TestReflect.hx


+ 0 - 0
tests/unit/TestRemoting.hx → tests/unit/src/unit/TestRemoting.hx


+ 0 - 0
tests/unit/TestResource.hx → tests/unit/src/unit/TestResource.hx


+ 0 - 0
tests/unit/TestSerialize.hx → tests/unit/src/unit/TestSerialize.hx


+ 1 - 1
tests/unit/TestSpecification.hx → tests/unit/src/unit/TestSpecification.hx

@@ -142,7 +142,7 @@ class RttiClass3 extends RttiClass1 {
 }
 
 #if !macro
-@:build(unit.UnitBuilder.build("unitstd"))
+@:build(unit.UnitBuilder.build("src/unitstd"))
 #end
 class TestSpecification extends Test {
 

+ 0 - 0
tests/unit/TestSpod.hx → tests/unit/src/unit/TestSpod.hx


+ 0 - 0
tests/unit/TestThreads.hx → tests/unit/src/unit/TestThreads.hx


+ 0 - 0
tests/unit/TestType.hx → tests/unit/src/unit/TestType.hx


+ 0 - 0
tests/unit/TestUInt.hx → tests/unit/src/unit/TestUInt.hx


+ 0 - 0
tests/unit/TestUnspecified.hx → tests/unit/src/unit/TestUnspecified.hx


+ 0 - 0
tests/unit/TestXML.hx → tests/unit/src/unit/TestXML.hx


+ 0 - 0
tests/unit/UnitBuilder.hx → tests/unit/src/unit/UnitBuilder.hx


+ 0 - 0
tests/unit/issues/Issue1492.hx → tests/unit/src/unit/issues/Issue1492.hx


+ 0 - 0
tests/unit/issues/Issue1497.hx → tests/unit/src/unit/issues/Issue1497.hx


+ 0 - 0
tests/unit/issues/Issue1810.hx → tests/unit/src/unit/issues/Issue1810.hx


+ 0 - 0
tests/unit/issues/Issue1845.hx → tests/unit/src/unit/issues/Issue1845.hx


+ 0 - 0
tests/unit/issues/Issue1925.hx → tests/unit/src/unit/issues/Issue1925.hx


+ 0 - 0
tests/unit/issues/Issue1997.hx → tests/unit/src/unit/issues/Issue1997.hx


+ 0 - 0
tests/unit/issues/Issue2003.hx → tests/unit/src/unit/issues/Issue2003.hx


+ 0 - 0
tests/unit/issues/Issue2044.hx → tests/unit/src/unit/issues/Issue2044.hx


+ 0 - 0
tests/unit/issues/Issue2048.hx → tests/unit/src/unit/issues/Issue2048.hx


+ 0 - 0
tests/unit/issues/Issue2049.hx → tests/unit/src/unit/issues/Issue2049.hx


+ 0 - 0
tests/unit/issues/Issue2063.hx → tests/unit/src/unit/issues/Issue2063.hx


+ 0 - 0
tests/unit/issues/Issue2086.hx → tests/unit/src/unit/issues/Issue2086.hx


+ 0 - 0
tests/unit/issues/Issue2130.hx → tests/unit/src/unit/issues/Issue2130.hx


+ 0 - 0
tests/unit/issues/Issue2152.hx → tests/unit/src/unit/issues/Issue2152.hx


+ 0 - 0
tests/unit/issues/Issue2157.hx → tests/unit/src/unit/issues/Issue2157.hx


+ 0 - 0
tests/unit/issues/Issue2184.hx → tests/unit/src/unit/issues/Issue2184.hx


+ 0 - 0
tests/unit/issues/Issue2224.hx → tests/unit/src/unit/issues/Issue2224.hx


+ 0 - 0
tests/unit/issues/Issue2235.hx → tests/unit/src/unit/issues/Issue2235.hx


+ 0 - 0
tests/unit/issues/Issue2254.hx → tests/unit/src/unit/issues/Issue2254.hx


+ 0 - 0
tests/unit/issues/Issue2271.hx → tests/unit/src/unit/issues/Issue2271.hx


+ 0 - 0
tests/unit/issues/Issue2272.hx → tests/unit/src/unit/issues/Issue2272.hx


+ 0 - 0
tests/unit/issues/Issue2281.hx → tests/unit/src/unit/issues/Issue2281.hx


+ 0 - 0
tests/unit/issues/Issue2282.hx → tests/unit/src/unit/issues/Issue2282.hx


+ 0 - 0
tests/unit/issues/Issue2304.hx → tests/unit/src/unit/issues/Issue2304.hx


+ 0 - 0
tests/unit/issues/Issue2317.hx → tests/unit/src/unit/issues/Issue2317.hx


+ 0 - 0
tests/unit/issues/Issue2343.hx → tests/unit/src/unit/issues/Issue2343.hx


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません