10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-05 13:43:57 +01:00
quantum_package/tests/run_tests.sh

37 lines
463 B
Bash
Raw Normal View History

2016-10-31 21:05:57 +01:00
#!/bin/bash -e
2016-02-04 23:33:40 +01:00
2016-10-07 19:21:04 +02:00
LIST="
convert.bats
hf.bats
fci.bats
cassd.bats
mrcepa0.bats
2017-10-16 15:06:24 +02:00
pseudo.bats
2016-10-07 19:21:04 +02:00
"
2016-10-31 21:33:41 +01:00
#foboci.bats
2016-10-07 19:21:04 +02:00
2016-11-30 19:46:59 +01:00
export QP_PREFIX="timeout -s 9 600"
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"
2016-10-31 21:05:57 +01:00
./bats_to_sh.py $BATS_FILE | bash
2016-10-07 19:21:04 +02:00
else
bats $BATS_FILE
fi
done
2016-02-04 23:33:40 +01:00