From e0671a336595deddaa287a1f1f4f718897d01b90 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 9 Jul 2017 07:38:29 +0000 Subject: Add test framework based on shunit2 --- test/test_suite.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test/test_suite.sh (limited to 'test') diff --git a/test/test_suite.sh b/test/test_suite.sh new file mode 100755 index 0000000..c6aa38e --- /dev/null +++ b/test/test_suite.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +gemma=../bin/gemma + +testCenteredRelatednessMatrix() { + $gemma -g ../example/mouse_hs1940.geno.txt.gz -p ../example/mouse_hs1940.pheno.txt \ + -a ../example/mouse_hs1940.anno.txt -gk -o mouse_hs1940 + assertEquals "3763600" `wc -w < output/mouse_hs1940.cXX.txt` +} + +shunit2=`which shunit2` +if [ -x "$shunit2" ]; then + . $shunit2 +else + # try to run the locally installed shunit2 + . ../shunit2-2.0.3/src/shell/shunit2 +fi -- cgit v1.2.3