-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.sh
executable file
·45 lines (40 loc) · 1.05 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
#############################################
# #
# Simple Test Driver #
# #
# ./run_tests -q (queit) -f (failfast) #
#############################################
#QUEIT=""
#if [[ "$@" == *-q* ]]; then
# QUEIT=" > /dev/null"
#fi
#
#FAILFAST=""
#if [[ "$@" == *-f* ]]; then
# FAILFAST=" --failfast "
#fi
#
#VERBOSE=""
#if [[ "$@" == *-v* ]]; then
# VERBOSE=" -v "
#fi
#
#echo "/usr/bin/yes | python -m unittest discover $VERBOSE $FAILFAST $QUEIT"
#exec /usr/bin/yes | python -m unittest discover $VERBOSE $FAILFAST $QUEIT
if [[ "$@" == *-q* ]];
then
if [[ "$@" == *-f* ]];
then
/usr/bin/yes | python -m unittest discover -v --failfast > /dev/null
else
/usr/bin/yes | python -m unittest discover -v > /dev/null
fi
else
if [[ "$@" == *-f* ]];
then
/usr/bin/yes | python -m unittest discover -v --failfast
else
/usr/bin/yes | python -m unittest discover -v
fi
fi