about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2017-07-09 12:25:44 +0000
committerPjotr Prins2017-07-09 12:25:44 +0000
commitd92fc5359540d7c860140f74f9f905d83b24f82d (patch)
treecc040bc8abab2800e1c57378749aa606bb16baa0
parentc978835c3630286414df6076d38aad16277cdb6b (diff)
downloadpangemma-d92fc5359540d7c860140f74f9f905d83b24f82d.tar.gz
Makefile: force unit tests to throw a make error on less than 100% success
-rw-r--r--Makefile3
-rwxr-xr-xtest/test_suite.sh1
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8b5b113..748c4f2 100644
--- a/Makefile
+++ b/Makefile
@@ -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`
 }