-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhydrotest
executable file
·60 lines (51 loc) · 1.41 KB
/
hydrotest
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bash
# hydrotest
# HydroTest Control Script
# Author: Neal DeBuhr
# Modified by: Devin Cowan
display_usage() {
echo "*** HydroTest Control Script ***"
echo "usage: $0 hydroclient [args] # runs tests within the hydroclient test suite"
echo "usage: $0 hydroshare [args] # runs tests within the hydroshare test suite"
echo "usage: $0 dsp [args] # runs tests within the dsp test suite"
echo "usage: $0 check # checks files against repository Flake8 standards"
}
run_hydroshare() {
echo "HYDROSHARE:"
echo "PYTHONPATH=. python3 hydroshare/hydroshare.py ${@:2}"
PYTHONPATH=. python3 hydroshare/hydroshare.py ${@:2}
}
run_hydroclient() {
echo "HYDROCLIENT:"
echo "PYTHONPATH=. python3 hydroclient/hydroclient.py ${@:2}"
PYTHONPATH=. python3 hydroclient/hydroclient.py ${@:2}
}
run_dsp() {
echo "DSP:"
echo "PYTHONPATH=. python3 dsp/dsp.py ${@:2}"
PYTHONPATH=. python3 dsp/dsp.py ${@:2}
}
run_check() {
echo "CUAHSI_BASE:"
echo "flake8 --config=cuahsi_base/setup.cfg ."
flake8 --config=cuahsi_base/setup.cfg .
}
### Display usage if no arguments provided ###
if [ $# -eq 0 ]
then
display_usage
exit 1
fi
case "$1" in
hydroshare) run_hydroshare "$@"
;;
hydroclient) run_hydroclient "$@"
;;
dsp) run_dsp "$@"
;;
check) run_check "$@"
;;
*) display_usage
;;
esac
exit 0;