test: integration test script [ci skip]

This commit is contained in:
decentral1se 2023-09-25 12:00:39 +02:00
parent 7b240059b0
commit c0f3e6f2a4
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 18 additions and 0 deletions

18
scripts/release/test.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
files=$(find ./tests/integration -name "*bats")
for f in $files; do
echo "running integration tests for $f..."
bats -Tp "$f"
res=$?
if [[ "$res" -ne 0 ]]; then
echo "failure in $f, bailing out..."
exit 1
fi
echo "all tests passed!"
done