aboutsummaryrefslogtreecommitdiff
path: root/test/test_suite.sh
blob: c6aa38e575d4300b21e1c05f340ee9d99f2d3ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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