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"
|
2016-11-14 19:19:00 +01:00
|
|
|
#export QP_TASK_DEBUG=1
|
2016-02-19 00:20:28 +01:00
|
|
|
|
|
|
|
rm -rf work output
|
|
|
|
|
2016-10-07 19:21:04 +02:00
|
|
|
|
|
|
|
for BATS_FILE in $LIST
|
|
|
|
do
|
|
|
|
echo
|
|
|
|
echo "-~-~-~-~-~-~"
|
|
|
|
echo
|
|
|
|
echo "Running tests for ${BATS_FILE%.bats}"
|
|
|
|
echo
|
|
|
|
BATS_FILE=bats/$BATS_FILE
|
|
|
|
if [[ "$1" == "-v" ]]
|
|
|
|
then
|
|
|
|
echo "Verbose mode"
|
|
|
|
./bats_to_sh.py $BATS_FILE | bash
|
|
|
|
else
|
|
|
|
bats $BATS_FILE
|
|
|
|
fi
|
|
|
|
done
|
2016-02-04 23:33:40 +01:00
|
|
|
|
|
|
|
|