Skip to content

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

Merged
bnjbvr merged 3 commits into
bytecodealliance:mainfrom
bnjbvr:run-test-script
Jun 1, 2021
Merged

CI: put tests into a separate script so they can be run externally#2956
bnjbvr merged 3 commits into
bytecodealliance:mainfrom
bnjbvr:run-test-script

Conversation

@bnjbvr
Copy link
Copy Markdown
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.

Comment thread ci/run-tests.sh Outdated

cargo test \
--features "test-programs/test_programs" \
$EXTRA_FEATURE \
Copy link
Copy Markdown
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
Copy Markdown
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