File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 10
10
fi
11
11
SCRIPT_DIR=` (cd $SCRIPT_DIRNAME ; pwd)`
12
12
13
+ TEST_SET=2 # 0 for unit tests, 1 for integration tests, 2 for both
13
14
14
15
# source read ravenrc script
15
16
RAVEN_RC_SCRIPT=$SCRIPT_DIR /raven/scripts/read_ravenrc.sh
@@ -19,6 +20,25 @@ source $RAVEN_RC_SCRIPT
19
20
# set up installation manager
20
21
INSTALLATION_MANAGER=$( read_ravenrc " INSTALLATION_MANAGER" )
21
22
23
+ # read command-line arguments
24
+ ARGS=()
25
+ for A in " $@ " ; do
26
+ case $A in
27
+ --unit-tests)
28
+ TEST_SET=0
29
+ ;;
30
+ --integration-tests)
31
+ TEST_SET=1
32
+ ;;
33
+ --all-tests)
34
+ TEST_SET=2
35
+ ;;
36
+ * )
37
+ ARGS+=(" $A " )
38
+ ;;
39
+ esac
40
+ done
41
+
22
42
23
43
echo ' Loading libraries ...'
24
44
if [[ " $INSTALLATION_MANAGER " == " CONDA" ]];
@@ -57,7 +77,19 @@ echo "**************************************************************************
57
77
echo
58
78
echo ' Running FORCE tests ...'
59
79
60
- $PYTHON_COMMAND $SCRIPT_DIR /raven/rook/main.py --config-file=$SCRIPT_DIR /developer_tools/rook.ini --testers-dir $RAVEN_DIR /scripts/TestHarness/testers,$RAVEN_DIR /../HERON/src/Testers " ${ARGS[@]} "
80
+ case $TEST_SET in
81
+ 0)
82
+ TEST_DIR=tests/unit_tests
83
+ ;;
84
+ 1)
85
+ TEST_DIR=tests/integration_tests
86
+ ;;
87
+ 2)
88
+ TEST_DIR=tests
89
+ ;;
90
+ esac
91
+
92
+ $PYTHON_COMMAND $SCRIPT_DIR /raven/rook/main.py --config-file=$SCRIPT_DIR /developer_tools/rook.ini --test-dir $TEST_DIR --testers-dir $RAVEN_DIR /scripts/TestHarness/testers,$RAVEN_DIR /../HERON/src/Testers " ${ARGS[@]} "
61
93
62
94
# store return codes individually (rc) and combined (ALL_PASS)
63
95
rc=$?
You can’t perform that action at this time.
0 commit comments