Move integration tests into script

This commit is contained in:
asonix 2025-03-29 21:10:01 -05:00
parent 73afada7e7
commit e9ab28a962
3 changed files with 16 additions and 14 deletions

View file

@ -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"

View file

@ -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
View 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