Package: gemma / 0.98.1+dfsg-1

Makefile.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Steffen Möller
Description: Patch the makefile for Debian packaging.
Last-Update: 2018-04-26

--- a/Makefile
+++ b/Makefile
@@ -219,7 +219,7 @@ $(OBJS): $(HDR)
 
 .SUFFIXES : .cpp .c .o $(SUFFIXES)
 
-./bin/unittests-gemma: contrib/catch-1.9.7/catch.hpp $(TEST_SRC_DIR)/unittests-main.o $(TEST_SRC_DIR)/unittests-math.o $(OBJS)
+./bin/unittests-gemma: $(TEST_SRC_DIR)/unittests-main.o $(TEST_SRC_DIR)/unittests-math.o $(OBJS)
 	$(CPP) $(CPPFLAGS) $(TEST_SRC_DIR)/unittests-main.o  $(TEST_SRC_DIR)/unittests-math.o $(filter-out src/main.o, $(OBJS)) $(LIBS) -o ./bin/unittests-gemma
 
 unittests: all ./bin/unittests-gemma
@@ -228,12 +228,12 @@ unittests: all ./bin/unittests-gemma
 fast-check: all unittests
 	rm -vf test/output/*
 	cd test && ./dev_test_suite.sh | tee ../dev_test.log
-	grep -q 'success rate: 100%' dev_test.log
+	tail -n 1 dev_test.log | grep -q 'OK'
 
 slow-check: all
 	rm -vf test/output/*
 	cd test && ./test_suite.sh | tee ../test.log
-	grep -q 'success rate: 100%' test.log
+	tail -n 1 test.log | grep -q  'OK' test.log
 
 lengthy-check: all
 	rm -vf test/output/*