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

Add option to automatically generate failing.llvm #2680

Merged
merged 5 commits into from
Jan 16, 2025
Merged

Conversation

anvacaru
Copy link
Contributor

@anvacaru anvacaru commented Jan 16, 2025

  • Changes to the test_conformance.py harness:
    1. add a flag --save-failing to run and save failing tests to failing.llvm
    2. When the flag is active, all the tests of a GST file will be executed, otherwise, it will raise at the first failing test.
  • Regenerating failing.llvm

Before using the new flag, delete the contents of failing.llvm.

invocation example:

# make sure the --maxfail flag is not passed or it is set to a large number.
poetry run pytest src/tests/integration --verbose --durations=0 --dist=worksteal --numprocesses=8 --save-failing -k test_conformance.py

@anvacaru anvacaru marked this pull request as ready for review January 16, 2025 07:27
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
kevm-pyk/src/tests/integration/test_conformance.py Outdated Show resolved Hide resolved
@anvacaru anvacaru merged commit bb45638 into master Jan 16, 2025
12 checks passed
@anvacaru anvacaru deleted the gen-failing-llvm branch January 16, 2025 12:10
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.

3 participants