diff --git a/projects/nat-archive-tool/cpp.hxml b/projects/nat-archive-tool/cpp.hxml new file mode 100644 index 00000000..682008c0 --- /dev/null +++ b/projects/nat-archive-tool/cpp.hxml @@ -0,0 +1,2 @@ +--cpp bin/cpp +--cmd bash test-cpp.sh \ No newline at end of file diff --git a/projects/nat-archive-tool/js.hxml b/projects/nat-archive-tool/js.hxml new file mode 100644 index 00000000..226f38df --- /dev/null +++ b/projects/nat-archive-tool/js.hxml @@ -0,0 +1,2 @@ +--js bin/js/main.js +--cmd node bin/js/main.js \ No newline at end of file diff --git a/projects/nat-archive-tool/py.hxml b/projects/nat-archive-tool/py.hxml new file mode 100644 index 00000000..de2e0fff --- /dev/null +++ b/projects/nat-archive-tool/py.hxml @@ -0,0 +1,2 @@ +--python bin/python/main.py +--cmd python bin/python/main.py \ No newline at end of file diff --git a/projects/nat-archive-tool/test-cpp.sh b/projects/nat-archive-tool/test-cpp.sh new file mode 100644 index 00000000..de641c46 --- /dev/null +++ b/projects/nat-archive-tool/test-cpp.sh @@ -0,0 +1,2 @@ +#! /bin/bash +./bin/cpp/test/TestMain \ No newline at end of file diff --git a/projects/nat-archive-tool/test.hxml b/projects/nat-archive-tool/test.hxml index c4649462..53b5bc47 100644 --- a/projects/nat-archive-tool/test.hxml +++ b/projects/nat-archive-tool/test.hxml @@ -3,6 +3,4 @@ -lib nat-archive-tool -lib requests-externs -cp test ---main test.TestMain ---python bin/main.py ---cmd python bin/main.py \ No newline at end of file +--main test.TestMain \ No newline at end of file diff --git a/projects/nat-archive-tool/test.sh b/projects/nat-archive-tool/test.sh index 627c3a59..e81b3d25 100755 --- a/projects/nat-archive-tool/test.sh +++ b/projects/nat-archive-tool/test.sh @@ -1,4 +1,8 @@ #! /bin/bash -haxelib dev nat-archive-tool . -haxe test.hxml \ No newline at end of file +# Run these tests on every target that could be used for a NAT front-end +# (also to test (#extern) on multiple targets) +haxe test.hxml py.hxml && +haxe test.hxml js.hxml && +haxe test.hxml cpp.hxml && +haxe test.hxml --interp