CI: put tests into a separate script so they can be run externally (#2956)
This commit is contained in:
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
10
ci/run-tests.sh
Executable 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 \
|
||||||
|
$@
|
||||||
Reference in New Issue
Block a user