aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2017-07-26 09:06:34 +0000
committerPjotr Prins2017-07-26 09:06:34 +0000
commitc91dfaef84d08ce151eecca50bf8ffdaf4b327f6 (patch)
treeb2f46a454dae5af7795bf709088d4bd4082e6fde
parentb31ec4f345979a2fb705fb274f4bac9b7ab0e4fe (diff)
downloadpangemma-c91dfaef84d08ce151eecca50bf8ffdaf4b327f6.tar.gz
test_suite: run shunit2 from system when available
-rwxr-xr-xtest/test_suite.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_suite.sh b/test/test_suite.sh
index 821c5bf..ebbe4c7 100755
--- a/test/test_suite.sh
+++ b/test/test_suite.sh
@@ -39,8 +39,13 @@ testMultivariateLinearMixedModel() {
assertEquals "139867" `wc -w < $outfn`
assertEquals "92079" `perl -nle '$sum += substr($_,0,6) } END { print $sum' $outfn`
}
+shunit2=`which shunit2`
-if [ -e shunit2-2.0.3/src/shell/shunit2 ]; then
+if [ -x "$shunit2" ]; then
+ echo run system shunit2
+ . $shunit2
+elif [ -e shunit2-2.0.3/src/shell/shunit2 ]; then
+ echo run shunit2 provided in gemma repo
. shunit2-2.0.3/src/shell/shunit2
else
echo "Can not find shunit2 - see INSTALL.md"