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

CI: put tests into a separate script so they can be run externally #2956

Merged
merged 3 commits into from
Jun 1, 2021

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jun 1, 2021

This streamlines running the tests, and has the benefits to make it trivial to locally run tests as they're run in CI (viz. use ./ci/run-tests.sh) and makes the cargo test flags uniform across testing, including for the old-x86-backend.

ci/run-tests.sh Outdated

cargo test \
--features "test-programs/test_programs" \
$EXTRA_FEATURE \
Copy link
Member

Choose a reason for hiding this comment

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

Could this perhaps be "$@" to just forward all arguments to cargo test (and placed at the end). That way the --locked could also be passed in only with CI to make this a bit more useful to run locally.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, it's also more future-proof!

@bnjbvr bnjbvr merged commit aa2c0cd into bytecodealliance:main Jun 1, 2021
@bnjbvr bnjbvr deleted the run-test-script branch June 1, 2021 15:28
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