diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25d241f7b..0aa88197b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -130,12 +130,21 @@ jobs: - name: build tool if: ${{ !cancelled() && steps.setup.outcome == 'success' }} - working-directory: test/cxx_standard + working-directory: test/tools run: | set -x - for xml in *.xml; do - haxelib run hxcpp $xml - haxelib run hxcpp $xml clean + # some tests include only xml or only hxml, so do not error if a type doesn't exist + shopt -s nullglob + for dir in */; do + pushd $dir + for xml in *.xml; do + haxelib run hxcpp $xml + haxelib run hxcpp $xml clean + done + for hxml in *.hxml; do + haxe $hxml + done + popd done cppia: diff --git a/.gitignore b/.gitignore index ae80f7d57..acb17d1d8 100644 --- a/.gitignore +++ b/.gitignore @@ -29,10 +29,7 @@ hxcpp.n .vscode -test/cxx_standard/main -test/cxx_standard/main.hash -test/cxx_standard/main.exe -test/cxx_standard/main.exe.hash +test/tools/cxx_standard/main* # Created by https://www.toptal.com/developers/gitignore/api/visualstudio # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio diff --git a/src/hx/libs/mysql/Build.xml b/src/hx/libs/mysql/Build.xml index 76e497850..b1463cbac 100644 --- a/src/hx/libs/mysql/Build.xml +++ b/src/hx/libs/mysql/Build.xml @@ -1,6 +1,7 @@ + diff --git a/src/hx/libs/regexp/Build.xml b/src/hx/libs/regexp/Build.xml index 46a1fba14..30e3952ed 100644 --- a/src/hx/libs/regexp/Build.xml +++ b/src/hx/libs/regexp/Build.xml @@ -27,6 +27,7 @@ + diff --git a/src/hx/libs/sqlite/Build.xml b/src/hx/libs/sqlite/Build.xml index b17ca5420..cbbe8f52c 100644 --- a/src/hx/libs/sqlite/Build.xml +++ b/src/hx/libs/sqlite/Build.xml @@ -5,6 +5,7 @@ + diff --git a/src/hx/libs/ssl/Build.xml b/src/hx/libs/ssl/Build.xml index 2240f564a..ef0e89362 100644 --- a/src/hx/libs/ssl/Build.xml +++ b/src/hx/libs/ssl/Build.xml @@ -5,6 +5,7 @@ + diff --git a/src/hx/libs/std/Build.xml b/src/hx/libs/std/Build.xml index f18ee01bb..785f3bee5 100644 --- a/src/hx/libs/std/Build.xml +++ b/src/hx/libs/std/Build.xml @@ -3,6 +3,7 @@ + diff --git a/src/hx/libs/zlib/Build.xml b/src/hx/libs/zlib/Build.xml index ab0b3ee41..2ef48e7a3 100644 --- a/src/hx/libs/zlib/Build.xml +++ b/src/hx/libs/zlib/Build.xml @@ -2,6 +2,6 @@ - + - \ No newline at end of file + diff --git a/src/hx/zip/Build.xml b/src/hx/zip/Build.xml index 0cf31265b..dad228d6e 100644 --- a/src/hx/zip/Build.xml +++ b/src/hx/zip/Build.xml @@ -5,9 +5,10 @@ - + + @@ -19,4 +20,4 @@ - \ No newline at end of file + diff --git a/src/hx/zip/zlib/Build.xml b/src/hx/zip/zlib/Build.xml index 6289ab59f..40a4337ee 100644 --- a/src/hx/zip/zlib/Build.xml +++ b/src/hx/zip/zlib/Build.xml @@ -31,6 +31,7 @@ + @@ -42,8 +43,8 @@ - - + + diff --git a/test/cxx_standard/Build.xml b/test/tools/cxx_standard/Build.xml similarity index 100% rename from test/cxx_standard/Build.xml rename to test/tools/cxx_standard/Build.xml diff --git a/test/cxx_standard/Build_legacy.xml b/test/tools/cxx_standard/Build_legacy.xml similarity index 100% rename from test/cxx_standard/Build_legacy.xml rename to test/tools/cxx_standard/Build_legacy.xml diff --git a/test/cxx_standard/Build_section.xml b/test/tools/cxx_standard/Build_section.xml similarity index 100% rename from test/cxx_standard/Build_section.xml rename to test/tools/cxx_standard/Build_section.xml diff --git a/test/cxx_standard/c11.c b/test/tools/cxx_standard/c11.c similarity index 100% rename from test/cxx_standard/c11.c rename to test/tools/cxx_standard/c11.c diff --git a/test/cxx_standard/c17.c b/test/tools/cxx_standard/c17.c similarity index 100% rename from test/cxx_standard/c17.c rename to test/tools/cxx_standard/c17.c diff --git a/test/cxx_standard/cxx14.cpp b/test/tools/cxx_standard/cxx14.cpp similarity index 100% rename from test/cxx_standard/cxx14.cpp rename to test/tools/cxx_standard/cxx14.cpp diff --git a/test/cxx_standard/main.cpp b/test/tools/cxx_standard/main.cpp similarity index 100% rename from test/cxx_standard/main.cpp rename to test/tools/cxx_standard/main.cpp diff --git a/test/tools/rebuild-no-smart-strings/Main.hx b/test/tools/rebuild-no-smart-strings/Main.hx new file mode 100644 index 000000000..3bacfe623 --- /dev/null +++ b/test/tools/rebuild-no-smart-strings/Main.hx @@ -0,0 +1,3 @@ +function main() { + ~/hello/.match("world"); +} diff --git a/test/tools/rebuild-no-smart-strings/build-0-smart-strings.hxml b/test/tools/rebuild-no-smart-strings/build-0-smart-strings.hxml new file mode 100644 index 000000000..b484e67e7 --- /dev/null +++ b/test/tools/rebuild-no-smart-strings/build-0-smart-strings.hxml @@ -0,0 +1,2 @@ +-m Main +--cpp bin diff --git a/test/tools/rebuild-no-smart-strings/build-1-no-smart-strings.hxml b/test/tools/rebuild-no-smart-strings/build-1-no-smart-strings.hxml new file mode 100644 index 000000000..92704f813 --- /dev/null +++ b/test/tools/rebuild-no-smart-strings/build-1-no-smart-strings.hxml @@ -0,0 +1,3 @@ +-m Main +--cpp bin +-D disable-unicode-strings