aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-23 14:02:59 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:47 +0100
commit647660014b2f506d19c4feedc06a45b514035d5b (patch)
treee714102cfeeb842f1d66a625a9b1257d6cd5838f /test/Makefile
parentb3f87944ba62ee82684f30fc89d8bbd5cf472b48 (diff)
downloadusdx-647660014b2f506d19c4feedc06a45b514035d5b.tar.gz
usdx-647660014b2f506d19c4feedc06a45b514035d5b.tar.xz
usdx-647660014b2f506d19c4feedc06a45b514035d5b.zip
fixed make script to return error on failed tests
Diffstat (limited to '')
-rw-r--r--test/Makefile4
1 files changed, 3 insertions, 1 deletions
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 .