10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-14 10:03:51 +01:00
quantum_package/tests/run_tests.sh
2016-10-31 14:18:00 -05:00

37 lines
468 B
Bash
Executable File

#!/bin/bash
LIST="
convert.bats
hf.bats
foboci.bats
pseudo.bats
fci.bats
cassd.bats
mrcepa0.bats
"
export QP_PREFIX="timeout -s 9 300"
export QP_TASK_DEBUG=1
rm -rf work output
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
echo "Verbose mode"
./bats_to_sh.py $BATS_FILE | bash
done
else
cd bats
bats .
fi