diff --git a/CMakeLists.txt b/CMakeLists.txt index 9558a695489b268d0fd661ca8fd9046f50fc8b11..883ecc3e8bc640259d4ae3823225c6427854ce27 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 0000000000000000000000000000000000000000..8d7582637a4a56d5f771ff40b55dff4c586c01aa --- /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