From f1e0934c6a54a2fa0193b518ab6cc5f2031a59fe Mon Sep 17 00:00:00 2001 From: Robert Sipka Date: Tue, 3 Jan 2023 15:19:01 +0100 Subject: [PATCH] [eTS][CI] Enable ets-runtime tests for the CI Add ignorelist for ets-runtime tests Signed-off-by: Robert Sipka --- CMakeLists.txt | 25 +++++++++++++++++++++++++ test/ets-runtime-ignored.txt | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 test/ets-runtime-ignored.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 9558a6954..883ecc3e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -417,3 +417,28 @@ add_subdirectory(aot) if(PANDA_WITH_TESTS) add_subdirectory(test) endif() + +if (NOT PANDA_TARGET_ARM32_ABI_SOFTFP + AND NOT PANDA_TARGET_ARM32_ABI_SOFT) + set(OPTIONS --ets-runtime --no-progress --timeout 60 --test-root plugins/ecmascript/es2panda/test --list-root plugins/ecmascript/es2panda/test) + + if(PANDA_TARGET_ARM64) + set(OPTIONS --arm64 ${OPTIONS}) + if(PANDA_QEMU_BUILD) + set(OPTIONS --arm64-qemu ${OPTIONS}) + endif() + elseif(PANDA_TARGET_ARM32) + set(OPTIONS --arm32 ${OPTIONS}) + if(PANDA_QEMU_BUILD) + set(OPTIONS --arm32-qemu ${OPTIONS}) + endif() + endif() + + add_custom_target(es2panda-ets-runtime-tests DEPENDS ark es2panda verifier) + add_dependencies(tests es2panda-ets-runtime-tests) + add_custom_command( + TARGET es2panda-ets-runtime-tests + WORKING_DIRECTORY ${PANDA_ROOT} + COMMAND ${PANDA_ROOT}/tests/runner/runner.sh ${PANDA_ROOT} ${OPTIONS} ${PANDA_BINARY_ROOT} + ) +endif() diff --git a/test/ets-runtime-ignored.txt b/test/ets-runtime-ignored.txt new file mode 100644 index 000000000..8d7582637 --- /dev/null +++ b/test/ets-runtime-ignored.txt @@ -0,0 +1,6 @@ +# SyntaxError: Cannot find type 'Class'. +ClassNewInstance.ets +# SyntaxError: Cannot find type 'HashMap'. +StringFasta.ets +# TypeError: Initializers type is not assignable to the target type +generics_1.ets -- Gitee