From 647660014b2f506d19c4feedc06a45b514035d5b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 23 Apr 2010 14:02:59 +0200 Subject: fixed make script to return error on failed tests --- test/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 937ee760..4a05284d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -57,6 +57,7 @@ $(TARGET): $(objects) $(deps) # build and execute tests with code coverage and build nice html pages test-with-coverage: $(COVERAGE-DIR)/html/index.html + @test ! -e .error $(COVERAGE-DIR)/html/index.html: $(COVERAGE-DIR)/coverage.info genhtml $(COVERAGE-DIR)/coverage.info -o $(COVERAGE-DIR)/html/ -p \ @@ -68,8 +69,9 @@ $(COVERAGE-DIR)/coverage.info: $(COVERAGE-DIR)/coverage.info.tmp -o $(COVERAGE-DIR)/coverage.info $(COVERAGE-DIR)/coverage.info.tmp: $(TARGET-COVERAGE) + -$(RM) .error lcov --directory $(TOP) --zerocounters - ./$(TARGET-COVERAGE) || true + ./$(TARGET-COVERAGE) || touch .error lcov --directory $(TOP) --capture \ --output-file $(COVERAGE-DIR)/coverage.info.tmp -b . -- cgit v1.2.3