Move integration tests into script
All checks were successful
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m5s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m11s
/ clippy (push) Successful in 1m40s
/ deny (push) Successful in 13s
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m10s
/ tests (push) Successful in 6m56s
All checks were successful
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m5s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m11s
/ clippy (push) Successful in 1m40s
/ deny (push) Successful in 13s
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m10s
/ tests (push) Successful in 6m56s
This commit is contained in:
parent
73afada7e7
commit
e9ab28a962
3 changed files with 16 additions and 14 deletions
|
@ -77,13 +77,7 @@ jobs:
|
|||
-
|
||||
name: Run integration tests
|
||||
run: |
|
||||
set -x
|
||||
for testFile in $(ls tests/*.rs)
|
||||
do
|
||||
testFile=${testFile#tests/}
|
||||
testFile=${testFile%.rs}
|
||||
cargo test --test $testFile
|
||||
done
|
||||
./scripts/integration-tests.sh
|
||||
env:
|
||||
RUSTFLAGS: --cfg tokio_unstable --cfg system_deps
|
||||
LD_LIBRARY_PATH: "/usr/local/lib"
|
||||
|
|
|
@ -77,13 +77,7 @@ jobs:
|
|||
-
|
||||
name: Run integration tests
|
||||
run: |
|
||||
set -x
|
||||
for testFile in $(ls tests/*.rs)
|
||||
do
|
||||
testFile=${testFile#tests/}
|
||||
testFile=${testFile%.rs}
|
||||
cargo test --test $testFile
|
||||
done
|
||||
./scripts/integration-tests.sh
|
||||
env:
|
||||
RUSTFLAGS: --cfg tokio_unstable --cfg system_deps
|
||||
LD_LIBRARY_PATH: "/usr/local/lib"
|
||||
|
|
14
scripts/integration-tests.sh
Executable file
14
scripts/integration-tests.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This file exists to help run integration tests in a way that doesn't eat all your RAM.
|
||||
|
||||
set -xe
|
||||
|
||||
export RUSTFLAGS='--cfg tokio_unstable --cfg system_deps'
|
||||
|
||||
for testFile in $(ls tests/*.rs)
|
||||
do
|
||||
testFile=${testFile#tests/}
|
||||
testFile=${testFile%.rs}
|
||||
cargo test --test $testFile
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue