Browse Source

Haxe: added a test to make sure haxelib works

Andy Li 7 years ago
parent
commit
937510d454

+ 1 - 0
test/config.sh

@@ -93,6 +93,7 @@ imageTests+=(
 	'
 	'
 	[haxe]='
 	[haxe]='
 		haxe-hello-world
 		haxe-hello-world
+		haxe-haxelib-install
 	'
 	'
 	[hylang]='
 	[hylang]='
 		hylang-sh
 		hylang-sh

+ 12 - 0
test/tests/haxe-haxelib-install/Container.hx

@@ -0,0 +1,12 @@
+class Container {
+    static function main():Void {
+        switch (Sys.command("haxelib", ["newrepo"])) {
+            case 0: //pass
+            case code: Sys.exit(code);
+        }
+        switch (Sys.command("haxelib", ["install", "jQueryExtern"])) {
+            case 0: //pass
+            case code: Sys.exit(code);
+        }
+    }
+}

+ 1 - 0
test/tests/haxe-haxelib-install/run.sh

@@ -0,0 +1 @@
+../run-haxe-in-container.sh