Skip to content

Commit 4d6a968

Browse files
committed
fix 'coverage' & add 'check' make-target
1 parent e66be11 commit 4d6a968

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

makefile_include.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ endif
116116

117117
# adjust coverage set
118118
ifneq ($(filter $(_ARCH), i386 i686 x86_64 amd64 ia64),)
119-
COVERAGE = test_standalone timing
119+
COVERAGE = test timing
120120
COVERAGE_APP = ./test && ./timing
121121
else
122-
COVERAGE = test_standalone
122+
COVERAGE = test
123123
COVERAGE_APP = ./test
124124
endif
125125

@@ -135,6 +135,10 @@ LIBPATH ?= $(PREFIX)/lib
135135
INCPATH ?= $(PREFIX)/include
136136
DATAPATH ?= $(PREFIX)/share/doc/libtommath/pdf
137137

138+
# build & run test-suite
139+
check: test
140+
./test
141+
138142
#make the code coverage of the library
139143
#
140144
coverage: LTM_CFLAGS += -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS

0 commit comments

Comments
 (0)