diff options
author | Pjotr Prins | 2017-07-09 12:25:44 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-07-09 12:25:44 +0000 |
commit | d92fc5359540d7c860140f74f9f905d83b24f82d (patch) | |
tree | cc040bc8abab2800e1c57378749aa606bb16baa0 | |
parent | c978835c3630286414df6076d38aad16277cdb6b (diff) | |
download | pangemma-d92fc5359540d7c860140f74f9f905d83b24f82d.tar.gz |
Makefile: force unit tests to throw a make error on less than 100% success
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | test/test_suite.sh | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -102,8 +102,7 @@ $(OBJS) : $(HDR) .SUFFIXES : .cpp .c .o $(SUFFIXES) check: all - cd test && ./test_suite.sh - + cd test && ./test_suite.sh | grep -q 'success rate: 100%' clean: rm -rf ${SRC_DIR}/*.o ${SRC_DIR}/*~ *~ $(OUTPUT) diff --git a/test/test_suite.sh b/test/test_suite.sh index 763c981..d65bf40 100755 --- a/test/test_suite.sh +++ b/test/test_suite.sh @@ -11,6 +11,7 @@ testCenteredRelatednessMatrixK() { assertEquals "3763600" `wc -w < output/mouse_hs1940.cXX.txt` # assertEquals "15f680c" `md5sum < output/mouse_hs1940.cXX.txt | head -c 7` assertEquals "0.335" `head -c 5 output/mouse_hs1940.cXX.txt` + # FIXME: The following test fails in the Guix build system (https://github.com/xiangzhou/GEMMA/issues/55) assertEquals "29.691" `awk '{s+=substr($1,0,6)}END{print s}' output/mouse_hs1940.cXX.txt` } |