10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-04 05:03:54 +01:00
quantum_package/tests/run_tests.sh

40 lines
460 B
Bash
Raw Normal View History

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-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