aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_suite.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/test_suite.sh b/test/test_suite.sh
index d65bf40..f1a1c6f 100755
--- a/test/test_suite.sh
+++ b/test/test_suite.sh
@@ -40,9 +40,15 @@ testMultivariateLinearMixedModel() {
}
shunit2=`which shunit2`
-if [ -x "$shunit2" ]; then
+if [ -e "../contrib/shunit2/source/2.0/src/shell/shunit2" ]; then
+ echo try to run the locally installed shunit2
+ . ../contrib/shunit2/source/2.0/src/shell/shunit2
+elif [ -e "../shunit2-2.0.3/src/shell/shunit2" ]; then
+ echo try to run the older locally installed shunit2
+ . ../shunit2-2.0.3/src/shell/shunit2
+elif [ -x "$shunit2" ]; then
+ echo run system shunit2
. $shunit2
else
- # try to run the locally installed shunit2
- . ../shunit2-2.0.3/src/shell/shunit2
+ echo "Can not find shunit2 - see INSTALL.md"
fi