diff options
author | Pjotr Prins | 2017-07-16 11:05:39 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-07-16 11:05:39 +0000 |
commit | d6098a5f318543b525878c6cf45ddfe8ec923d9d (patch) | |
tree | 47e1610aebddc635552e6d29251a52424ad625c5 | |
parent | c3bc17415916a38aae675805b7f26a4cb6aafeca (diff) | |
download | pangemma-d6098a5f318543b525878c6cf45ddfe8ec923d9d.tar.gz |
sunit2: added instructions
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | INSTALL.md | 17 | ||||
-rwxr-xr-x | run_tests.sh | 3 | ||||
-rwxr-xr-x | test/test_suite.sh | 12 |
4 files changed, 28 insertions, 5 deletions
@@ -10,3 +10,4 @@ doc/manual.blg doc/manual.log doc/manual.out doc/manual.toc +contrib/ @@ -52,3 +52,20 @@ path. E.g. on GNU Guix with shared libs this may work to run GEMMA tests make check + +## Run tests + +GEMMA uses the shunit2 test framework (version 2.0) and can be found +[here](https://github.com/genenetwork/shunit2) + +In the source tree: + + git clone https://github.com/genenetwork/shunit2 contrib/shunit2 + +and run + + make check + +or + + ./run_tests.sh diff --git a/run_tests.sh b/run_tests.sh index e8b7d49..181f687 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash -# download shunit2 in order to run tests: -# curl -L "https://dl.dropboxusercontent.com/u/7916095/shunit2-2.0.3.tgz" | tar zx --overwrite +# download shunit2 in order to run tests (see INSTALL.md) cd test ./test_suite.sh | tee /dev/stderr | grep -q 'success rate: 100%' 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 |