test: integration test script [ci skip]
This commit is contained in:
parent
7b240059b0
commit
c0f3e6f2a4
|
@ -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
|
Loading…
Reference in New Issue