mirror of
https://codeberg.org/scip/dbtool.git
synced 2025-12-16 19:00:58 +01:00
unitfixes (#3)
- fix regex match padding - fix key copying - add more unit tests
This commit is contained in:
19
.woodpecker/test.sh
Executable file
19
.woodpecker/test.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
yq '.steps.test-gdbm.commands' < .woodpecker/build.yaml \
|
||||
| grep -- - | grep -v apk | sed 's/^\- //' \
|
||||
| while read COMMAND; do
|
||||
echo "$COMMAND" | bash -e > debug.log 2>&1
|
||||
if test $? -ne 0; then
|
||||
echo "fail - $COMMAND"
|
||||
if test -s debug.log; then
|
||||
cat debug.log
|
||||
else
|
||||
echo exit 1
|
||||
fi
|
||||
else
|
||||
echo "ok - $COMMAND"
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f debug.log
|
||||
Reference in New Issue
Block a user