aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPjotr Prins2020-11-28 15:09:05 +0000
committerPjotr Prins2020-11-28 15:09:05 +0000
commit1d60d303945b4976984f379e420217a7230d79a9 (patch)
treeb01768ffa8db773fc0c007ca1a7973c9811668e5 /test
parentb4c1212ccd8aa64ed31d584dcc7713bf392e9b97 (diff)
downloadpangemma-1d60d303945b4976984f379e420217a7230d79a9.tar.gz
Prepare for release
Diffstat (limited to 'test')
-rwxr-xr-xtest/dev_test_suite.sh1
-rwxr-xr-xtest/lengthy_test_suite.sh1
-rwxr-xr-xtest/test_suite.sh5
3 files changed, 5 insertions, 2 deletions
diff --git a/test/dev_test_suite.sh b/test/dev_test_suite.sh
index 0e36218..903c72f 100755
--- a/test/dev_test_suite.sh
+++ b/test/dev_test_suite.sh
@@ -3,6 +3,7 @@
gemma=../bin/gemma
# gemmaopts="-debug -strict"
gemmaopts="-debug -check"
+export GSL_RNG_SEED=100
testLinearModel() {
$gemma $gemmaopts -g ../example/mouse_hs1940.geno.txt.gz \
diff --git a/test/lengthy_test_suite.sh b/test/lengthy_test_suite.sh
index 231475e..6e93220 100755
--- a/test/lengthy_test_suite.sh
+++ b/test/lengthy_test_suite.sh
@@ -3,6 +3,7 @@
# Long running tests go here
gemma=../bin/gemma
+export GSL_RNG_SEED=100
testPlinkStandardRelatednessMatrixK() {
testname=testPlinkStandardRelatednessMatrixK
diff --git a/test/test_suite.sh b/test/test_suite.sh
index a598cd2..cc244c0 100755
--- a/test/test_suite.sh
+++ b/test/test_suite.sh
@@ -2,6 +2,7 @@
gemma=../bin/gemma
gemmaopts="-debug"
+export GSL_RNG_SEED=10
testBslmm1() {
outn=mouse_hs1940_CD8_bslmm
@@ -72,10 +73,10 @@ testBslmm5() {
-epm ./output/mouse_hs1940_CD8_bslmm_cc1.param.txt \
-emu ./output/mouse_hs1940_CD8_bslmm_cc1.log.txt \
-predict \
- -o $outn
+ -o $outn -seed 100
assertEquals 0 $?
outfn=output/$outn.prdt.txt
- assertEquals "550.67" `perl -nle 'foreach $x (split(/\s+/,$_)) { $sum += sprintf("%.2f",(substr($x,,0,6))) } END { printf "%.2f",$sum }' $outfn`
+ assertEquals "571.08" `perl -nle 'foreach $x (split(/\s+/,$_)) { $sum += sprintf("%.2f",(substr($x,,0,6))) } END { printf "%.2f",$sum }' $outfn`
}
testCenteredRelatednessMatrixKFullLOCO1() {