mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2025-04-16 13:14:08 +00:00
Move integration tests into script
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…
Reference in a new issue