Skip to content

Commit

Permalink
Fix running test262 (facebook#1412)
Browse files Browse the repository at this point in the history
Summary:

Call the new test runner entry.

Differential Revision: D57977650
  • Loading branch information
lavenzg authored and facebook-github-bot committed May 30, 2024
1 parent 91985bc commit 3519df0
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
-DHERMESVM_GCKIND=<< parameters.gc >>
cmake --build build
cmake --build build --target check-hermes
python3 hermes/utils/testsuite/run_testsuite.py --shermes --test-intl test262/test -b build/bin
# TODO(zhaogang): test with --shermes flag as well once we address the harness
# code issue with shermes.
python3 hermes/utils/test_runner.py --test-intl test262/test -b build/bin
test-linux:
docker:
Expand Down
6 changes: 5 additions & 1 deletion utils/testsuite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ async def wrap_task(fut: Awaitable) -> TestCaseResult:
# Print result
print_stats(stats)
print_failed_tests(failed_cases)
if len(skipped_passed) > 0:
# The "intl_tests" list is simply a folder and we don't want to unfold
# it. All intl tests that we can't pass are included in "skip_list". So
# we will only remove them if both "--test-skiplist" and "--test-intl"
# are provided.
if len(skipped_passed) > 0 and test_skiplist:
print_skipped_passed_tests(skipped_passed)
remove_tests_from_skiplist(skipped_passed, skipped_paths_features)

Expand Down
52 changes: 41 additions & 11 deletions utils/testsuite/skiplist.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
"test262/test/language/expressions/async-arrow-function/"
],
"comment": "Lazy arrow functions are not supported for now."
},
{
"paths": [
"test262/test/intl402/DateTimeFormat/prototype/formatToParts/",
"test262/test/intl402/DateTimeFormat/prototype/formatRange/",
"test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts/"
],
"comment": "Remove these once we have better Intl support based on ICU."
}
],
"skip_list": [
Expand Down Expand Up @@ -935,28 +943,21 @@
"test262/test/intl402/DateTimeFormat/constructor-options-order-fractionalSecondDigits.js",
"test262/test/intl402/DateTimeFormat/constructor-options-order-dayPeriod.js",
"test262/test/intl402/DateTimeFormat/constructor-options-order.js",
"test262/test/intl402/DateTimeFormat/constructor-options-dayPeriod-invalid.js",
"test262/test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-valid.js",
"test262/test/intl402/DateTimeFormat/constructor-options-throwing-getters-dayPeriod.js",
"test262/test/intl402/DateTimeFormat/constructor-options-order-timedate-style.js",
"test262/test/intl402/DateTimeFormat/constructor-options-dayPeriod-valid.js",
"test262/test/intl402/DateTimeFormat/constructor-options-style-conflict.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/order.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-fractionalSecondDigits.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-dayPeriod.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-timeStyle.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-style.js",
"test262/test/intl402/DateTimeFormat/prototype/formatToParts",
"test262/test/intl402/DateTimeFormat/prototype/format/timedatestyle-en.js",
"test262/test/intl402/DateTimeFormat/prototype/format/dayPeriod-long-en.js",
"test262/test/intl402/DateTimeFormat/prototype/format/dayPeriod-narrow-en.js",
"test262/test/intl402/DateTimeFormat/prototype/format/fractionalSecondDigits.js",
"test262/test/intl402/DateTimeFormat/prototype/format/dayPeriod-short-en.js",
"test262/test/intl402/DateTimeFormat/constructor-options-numberingSystem-invalid.js",
"test262/test/intl402/DateTimeFormat/default-options-object-prototype.js",
"test262/test/intl402/DateTimeFormat/prototype/format/proleptic-gregorian-calendar.js",
"test262/test/intl402/DateTimeFormat/prototype/formatRange",
"test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/offset-timezone-basic.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/offset-timezone-change.js",
"test262/test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js",
Expand All @@ -967,10 +968,7 @@
"test262/test/intl402/NumberFormat/constructor-locales-hasproperty.js",
"test262/test/intl402/NumberFormat/prototype/resolvedOptions/order.js",
"test262/test/intl402/NumberFormat/constructor-order.js",
"test262/test/intl402/NumberFormat/constructor-options-roundingMode-invalid.js",
"test262/test/intl402/NumberFormat/constructor-options-throwing-getters-rounding-mode.js",
"test262/test/intl402/NumberFormat/ignore-invalid-unicode-ext-values.js",
"test262/test/intl402/NumberFormat/prototype/resolvedOptions/roundingMode.js",
"test262/test/intl402/NumberFormat/prototype/format/signDisplay-en-US.js",
"test262/test/intl402/NumberFormat/prototype/format/signDisplay-currency-en-US.js",
"test262/test/intl402/NumberFormat/prototype/format/engineering-scientific-ja-JP.js",
Expand All @@ -995,7 +993,39 @@
"test262/test/intl402/NumberFormat/prototype/format/signDisplay-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/format/notation-compact-de-DE.js",
"test262/test/intl402/NumberFormat/prototype/format/signDisplay-currency-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts",
"test262/test/intl402/NumberFormat/prototype/formatToParts/default-parameter.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/engineering-scientific-de-DE.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/engineering-scientific-en-US.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/engineering-scientific-ja-JP.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/engineering-scientific-ko-KR.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/engineering-scientific-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/length.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/main.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/name.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/notation-compact-de-DE.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/notation-compact-en-US.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/notation-compact-ja-JP.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/notation-compact-ko-KR.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/notation-compact-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/percent-en-US.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/prop-desc.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-currency-de-DE.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-currency-en-US.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-currency-ja-JP.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-currency-ko-KR.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-currency-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-de-DE.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-en-US.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-ja-JP.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-ko-KR.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/signDisplay-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/unit-de-DE.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/unit-en-US.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/unit-ja-JP.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/unit-ko-KR.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/unit-zh-TW.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/unit.js",
"test262/test/intl402/NumberFormat/prototype/formatToParts/value-tonumber.js",
"test262/test/intl402/NumberFormat/throws-for-minimumFractionDigits-over-limit.js",
"test262/test/intl402/NumberFormat/throws-for-maximumFractionDigits-over-limit.js",
"test262/test/language/identifiers/part-unicode-5.2.0-escaped.js",
Expand Down

0 comments on commit 3519df0

Please sign in to comment.