From d92fc5359540d7c860140f74f9f905d83b24f82d Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 9 Jul 2017 12:25:44 +0000 Subject: Makefile: force unit tests to throw a make error on less than 100% success --- Makefile | 3 +-- test/test_suite.sh | 1 + 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` } -- cgit v1.2.3