mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-03 20:54:00 +01:00
Update run_tests.sh
This commit is contained in:
parent
83c517a8e0
commit
6ebfa85f0f
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
|
||||
LIST="
|
||||
|
||||
convert.bats
|
||||
hf.bats
|
||||
foboci.bats
|
||||
@ -9,28 +8,29 @@ 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
|
||||
|
||||
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
|
||||
done
|
||||
else
|
||||
cd bats
|
||||
bats .
|
||||
fi
|
||||
else
|
||||
bats $BATS_FILE
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user