Skip to content

Commit

Permalink
Exclude timing tests on various architectures
Browse files Browse the repository at this point in the history
PPC and ARM have no RDTSC support, therefore simly eclude
the timing tests from the coverage make target
  • Loading branch information
dfateyev authored and sjaeckel committed Dec 25, 2015
1 parent 039a707 commit da9fa5b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ endif
endif # COMPILE_SIZE
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=tommath_private.h $(HEADERS_PUB)

Expand All @@ -73,9 +82,8 @@ coverage: CFLAGS += -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS
coverage: LFLAGS += -lgcov
coverage: LDFLAGS += -lgcov

coverage: test_standalone timing
./test
./ltmtest
coverage: $(COVERAGE)
$(COVERAGE_APP)

lcov: coverage
rm -f coverage.info
Expand Down

0 comments on commit da9fa5b

Please sign in to comment.