1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:07:35 +00:00

LibJS: Add the test-test262 utility

This allows running of test262 (like) tests with any runner. And thus
allows running the full test262 suite on Serenity itself.
The functionality of test-test262 is intentionally limited at first.
It does support:
- Progress updates including the special serenity terminal commands
- Outputting a per-file, to compare against other runs
- Passing any number of parameters to the runner
- Setting the batch size of the amount of tests per runner process
- Outputting a summary of the test results
This commit is contained in:
davidot 2022-09-11 10:49:37 +02:00 committed by Linus Groh
parent aff51f7cfd
commit cea9464961
2 changed files with 439 additions and 0 deletions

View file

@ -20,3 +20,11 @@ add_executable(test262-runner test262-runner.cpp)
target_link_libraries(test262-runner LibJS LibCore)
link_with_locale_data(test262-runner)
install(TARGETS test262-runner RUNTIME DESTINATION bin OPTIONAL)
serenity_component(
test-test262
TARGETS test-test262
)
add_executable(test-test262 test-test262.cpp)
target_link_libraries(test-test262 LibMain LibCore)
install(TARGETS test-test262 RUNTIME DESTINATION bin OPTIONAL)