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

Run V8 spec conformance test suite #243

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

bnoordhuis
Copy link
Contributor

The shell script runs the JS runner and diffs its stderr with v8.txt. Lines added/removed means tests were fixed/broken.

I added functions to qjs to let the JS runner execute tests in a separate context.

Future work is to a) fix failing tests, and b) enable more tests. A number are disabled for various reasons and mjsunit subdirectories are currently skipped. Need to decide on a case-by-case basis what is and isn't relevant to us.

At the moment about 430 tests are run of which approx. 345 or 80% pass.

Copy link
Contributor

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice! How do you plan to ignore failures on the newly added test step?

@bnoordhuis
Copy link
Contributor Author

How do you plan to ignore failures on the newly added test step?

By updating v8.txt. The shell script prints the diff that needs to be applied.

I took a slightly different tack in this revision. Instead of a separate context I now run tests in a separate process. Some of the tests need TZ set to a specific value.

@bnoordhuis
Copy link
Contributor Author

How do you plan to ignore failures on the newly added test step?

Forgot to mention, you can also copy the temp file over v8.txt locally. Amounts to the same thing.

@bnoordhuis bnoordhuis merged commit 4b138c8 into quickjs-ng:master Jan 2, 2024
31 checks passed
@bnoordhuis bnoordhuis deleted the v8-mjsunit branch January 2, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants