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

This commit is contained in:
Benjamin Bouvier
2021-06-01 17:28:47 +02:00
committed by GitHub
parent eadafb1554
commit aa2c0cd0ec
3 changed files with 12 additions and 27 deletions

View File

@@ -293,14 +293,7 @@ jobs:
if: matrix.target == '' if: matrix.target == ''
# Build and test all features except for lightbeam # Build and test all features except for lightbeam
- run: | - run: ./ci/run-tests.sh --locked
cargo test \
--features test-programs/test_programs \
--workspace \
--exclude '*lightbeam*' \
--exclude 'wasmtime-wasi-*' \
--exclude 'peepmatic*' \
--exclude wasi-crypto
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
@@ -349,7 +342,7 @@ jobs:
- run: rustup target add wasm32-unknown-unknown - run: rustup target add wasm32-unknown-unknown
# Run the old x86 backend CI (we will eventually remove this). # Run the old x86 backend CI (we will eventually remove this).
- run: ./ci/run-old-x86-ci.sh - run: ./ci/run-tests.sh --features old-x86-backend --locked
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1

View File

@@ -1,18 +0,0 @@
#!/bin/bash
cargo test \
--locked \
--features test-programs/test_programs \
--features old-x86-backend \
--all \
--exclude wasmtime-lightbeam \
--exclude wasmtime-wasi-nn \
--exclude wasmtime-wasi-crypto \
--exclude peepmatic \
--exclude peepmatic-automata \
--exclude peepmatic-fuzzing \
--exclude peepmatic-macro \
--exclude peepmatic-runtime \
--exclude peepmatic-test \
--exclude peepmatic-souper \
--exclude lightbeam

10
ci/run-tests.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
cargo test \
--features "test-programs/test_programs" \
--workspace \
--exclude '*lightbeam*' \
--exclude 'wasmtime-wasi-*' \
--exclude 'peepmatic*' \
--exclude wasi-crypto \
$@