Exclude timing tests on various architectures
PPC and ARM have no RDTSC support, therefore simly eclude the timing tests from the coverage make target
This commit is contained in:
parent
039a707e66
commit
da9fa5bd04
@ -55,6 +55,15 @@ endif
|
|||||||
endif # COMPILE_SIZE
|
endif # COMPILE_SIZE
|
||||||
endif # COMPILE_DEBUG
|
endif # COMPILE_DEBUG
|
||||||
|
|
||||||
|
# adjust coverage set
|
||||||
|
ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),)
|
||||||
|
COVERAGE = test_standalone timing
|
||||||
|
COVERAGE_APP = ./test && ./ltmtest
|
||||||
|
else
|
||||||
|
COVERAGE = test_standalone
|
||||||
|
COVERAGE_APP = ./test
|
||||||
|
endif
|
||||||
|
|
||||||
HEADERS_PUB=tommath.h tommath_class.h tommath_superclass.h
|
HEADERS_PUB=tommath.h tommath_class.h tommath_superclass.h
|
||||||
HEADERS=tommath_private.h $(HEADERS_PUB)
|
HEADERS=tommath_private.h $(HEADERS_PUB)
|
||||||
|
|
||||||
@ -73,9 +82,8 @@ coverage: CFLAGS += -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS
|
|||||||
coverage: LFLAGS += -lgcov
|
coverage: LFLAGS += -lgcov
|
||||||
coverage: LDFLAGS += -lgcov
|
coverage: LDFLAGS += -lgcov
|
||||||
|
|
||||||
coverage: test_standalone timing
|
coverage: $(COVERAGE)
|
||||||
./test
|
$(COVERAGE_APP)
|
||||||
./ltmtest
|
|
||||||
|
|
||||||
lcov: coverage
|
lcov: coverage
|
||||||
rm -f coverage.info
|
rm -f coverage.info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user