2020-04-01 18:49:50 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# The script runs python tests
|
|
|
|
# Firstly, all CLI tests are run
|
|
|
|
# Then, all the GUI tests are run individually
|
|
|
|
# to avoid segmentation fault
|
|
|
|
|
|
|
|
PARAMS=""
|
|
|
|
|
|
|
|
while [ ! $# -eq 0 ]
|
|
|
|
do
|
|
|
|
case "$1" in
|
|
|
|
--rungui)
|
|
|
|
PARAMS="$PARAMS --rungui"
|
|
|
|
;;
|
|
|
|
--runtor)
|
|
|
|
PARAMS="$PARAMS --runtor"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
2020-05-31 06:26:07 -04:00
|
|
|
pytest $PARAMS -vvv ./tests/test_cli*.py || exit 1
|
2020-04-01 18:49:50 -04:00
|
|
|
for filename in ./tests/test_gui_*.py; do
|
2020-05-31 06:26:07 -04:00
|
|
|
pytest $PARAMS -vvv --no-qt-log $filename || exit 1
|
2020-04-01 18:49:50 -04:00
|
|
|
done
|