2016-02-04 23:33:40 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-10-07 19:21:04 +02:00
|
|
|
LIST="
|
|
|
|
|
|
|
|
convert.bats
|
|
|
|
hf.bats
|
|
|
|
foboci.bats
|
|
|
|
pseudo.bats
|
|
|
|
fci.bats
|
|
|
|
cassd.bats
|
|
|
|
mrcepa0.bats
|
|
|
|
|
|
|
|
"
|
|
|
|
|
2016-02-19 00:20:28 +01:00
|
|
|
export QP_PREFIX="timeout -s 9 300"
|
|
|
|
export QP_TASK_DEBUG=1
|
|
|
|
rm -rf work output
|
|
|
|
|
2016-10-31 18:52:05 +01:00
|
|
|
if [[ "$1" == "-v" ]]
|
|
|
|
then
|
|
|
|
for BATS_FILE in $LIST
|
|
|
|
do
|
|
|
|
echo
|
|
|
|
echo "-~-~-~-~-~-~"
|
|
|
|
echo
|
|
|
|
echo "Running tests for ${BATS_FILE%.bats}"
|
|
|
|
echo
|
|
|
|
BATS_FILE=bats/$BATS_FILE
|
2016-10-07 19:21:04 +02:00
|
|
|
echo "Verbose mode"
|
|
|
|
./bats_to_sh.py $BATS_FILE | bash
|
2016-10-31 18:52:05 +01:00
|
|
|
done
|
|
|
|
else
|
2016-10-31 20:08:00 +01:00
|
|
|
cd bats
|
2016-10-31 20:18:00 +01:00
|
|
|
bats .
|
2016-10-31 18:52:05 +01:00
|
|
|
fi
|
2016-02-04 23:33:40 +01:00
|
|
|
|