mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 18:16:12 +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="
|
LIST="
|
||||||
|
|
||||||
convert.bats
|
convert.bats
|
||||||
hf.bats
|
hf.bats
|
||||||
foboci.bats
|
foboci.bats
|
||||||
@ -9,28 +8,29 @@ pseudo.bats
|
|||||||
fci.bats
|
fci.bats
|
||||||
cassd.bats
|
cassd.bats
|
||||||
mrcepa0.bats
|
mrcepa0.bats
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
export QP_PREFIX="timeout -s 9 300"
|
export QP_PREFIX="timeout -s 9 300"
|
||||||
export QP_TASK_DEBUG=1
|
export QP_TASK_DEBUG=1
|
||||||
|
|
||||||
rm -rf work output
|
rm -rf work output
|
||||||
|
|
||||||
if [[ "$1" == "-v" ]]
|
|
||||||
then
|
for BATS_FILE in $LIST
|
||||||
for BATS_FILE in $LIST
|
do
|
||||||
do
|
echo
|
||||||
echo
|
echo "-~-~-~-~-~-~"
|
||||||
echo "-~-~-~-~-~-~"
|
echo
|
||||||
echo
|
echo "Running tests for ${BATS_FILE%.bats}"
|
||||||
echo "Running tests for ${BATS_FILE%.bats}"
|
echo
|
||||||
echo
|
BATS_FILE=bats/$BATS_FILE
|
||||||
BATS_FILE=bats/$BATS_FILE
|
if [[ "$1" == "-v" ]]
|
||||||
echo "Verbose mode"
|
then
|
||||||
./bats_to_sh.py $BATS_FILE | bash
|
echo "Verbose mode"
|
||||||
done
|
./bats_to_sh.py $BATS_FILE | bash
|
||||||
else
|
else
|
||||||
cd bats
|
bats $BATS_FILE
|
||||||
bats .
|
fi
|
||||||
fi
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user