Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix running test262 #1412

Open
wants to merge 1 commit into
base: static_h
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 9 additions & 11 deletions utils/testsuite/skiplist.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
"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/",
"test262/test/intl402/NumberFormat/prototype/formatToParts"
],
"comment": "Remove these once we have better Intl support based on ICU."
}
],
"skip_list": [
Expand Down Expand Up @@ -935,28 +944,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 +969,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 +994,6 @@
"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/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