mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-22 05:55:21 -05:00
27 lines
448 B
Bash
27 lines
448 B
Bash
|
#!/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
|
||
|
|
||
|
pytest $PARAMS -vvv ./tests/test_cli*.py
|
||
|
for filename in ./tests/test_gui_*.py; do
|
||
|
pytest $PARAMS -vvv --no-qt-log $filename
|
||
|
done
|