mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-04-30 12:42:13 +08:00
add test-runner
This commit is contained in:
19
net-test/tests/run.sh
Executable file
19
net-test/tests/run.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ./config.sh
|
||||
set -uo pipefail
|
||||
|
||||
SUCCEEDED=0
|
||||
for TESTNAME in $(ls test_*); do
|
||||
( cd "$__MNT" && ./cleanup.sh )
|
||||
echo "Running $TESTNAME"
|
||||
"./$TESTNAME"
|
||||
RC=$?
|
||||
echo "$TESTNAME exit $RC"
|
||||
|
||||
if [ $RC -ne 0 ]; then
|
||||
SUCCEEDED=1
|
||||
fi
|
||||
done
|
||||
|
||||
exit $SUCCEEDED
|
||||
Reference in New Issue
Block a user