fix 'coverage' & add 'check' make-target

This commit is contained in:
Steffen Jaeckel 2019-10-19 15:50:29 +02:00
parent e66be11c36
commit 4d6a9682e5

View File

@ -116,10 +116,10 @@ endif
# adjust coverage set
ifneq ($(filter $(_ARCH), i386 i686 x86_64 amd64 ia64),)
COVERAGE = test_standalone timing
COVERAGE = test timing
COVERAGE_APP = ./test && ./timing
else
COVERAGE = test_standalone
COVERAGE = test
COVERAGE_APP = ./test
endif
@ -135,6 +135,10 @@ LIBPATH ?= $(PREFIX)/lib
INCPATH ?= $(PREFIX)/include
DATAPATH ?= $(PREFIX)/share/doc/libtommath/pdf
# build & run test-suite
check: test
./test
#make the code coverage of the library
#
coverage: LTM_CFLAGS += -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS