10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-10-31 19:23:50 +01:00
quantum_package/tests/run_tests.sh
Thomas Applencourt a3ed72d0d9 Update run_tests.sh
'Fix' #173
2016-10-31 15:33:41 -05:00

37 lines
462 B
Bash
Executable File

#!/bin/bash -e
LIST="
convert.bats
hf.bats
pseudo.bats
fci.bats
cassd.bats
mrcepa0.bats
"
#foboci.bats
export QP_PREFIX="timeout -s 9 300"
export QP_TASK_DEBUG=1
rm -rf work output
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