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 precondition to run tests #2887

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Add precondition to run tests #2887

merged 1 commit into from
Jul 15, 2024

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Jul 12, 2024

Some tests require external dependencies, such as rustc, wasmer, run_cairo_vm.sh, etc. If one does not have some of these available on their computer, then the test suite will have a lot of failed tests with the same fail message X is not on $PATH. This can be a bit ditracting and it slows running the test suite.
I've introduced some preconditions that are checked before the actual test suite so that if some of these commands are not on path then the tests that need them are not run. Instead, you get a single failed test (for each of the subtrees that failed the precondition).

@janmasrovira janmasrovira requested a review from lukaszcz July 12, 2024 07:24
@janmasrovira janmasrovira self-assigned this Jul 12, 2024
@janmasrovira janmasrovira marked this pull request as ready for review July 12, 2024 15:48
@janmasrovira janmasrovira requested a review from paulcadman July 12, 2024 15:48
@paulcadman paulcadman force-pushed the tests-precondition branch from 629926f to 3231452 Compare July 12, 2024 19:35
@janmasrovira janmasrovira merged commit 7d2a59c into main Jul 15, 2024
4 checks passed
@janmasrovira janmasrovira deleted the tests-precondition branch July 15, 2024 08:02
@lukaszcz
Copy link
Collaborator

lukaszcz commented Oct 31, 2024

This disables some tests even when they can be run with the internal interpreter (CASM tests) but the external VM is unavailable

@lukaszcz
Copy link
Collaborator

Ah, but perhaps that's OK if the whole subtree fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants