]> granicus.if.org Git - curl/commitdiff
coverage: run event tests too
authorDaniel Stenberg <daniel@haxx.se>
Fri, 2 Jun 2017 07:25:02 +0000 (09:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 2 Jun 2017 11:15:06 +0000 (13:15 +0200)
... the torture ones are commented out only because they are slooooow.

Makefile.am
scripts/coverage.sh
tests/Makefile.am

index 510838317327cdba9d330017315d291c61006fde..6c1d9edffff076989eec6e372e54380831b9b946 100644 (file)
@@ -202,6 +202,9 @@ test-nonflaky:
 test-torture:
        @(cd tests; $(MAKE) all torture-test)
 
+test-event:
+       @(cd tests; $(MAKE) all event-test)
+
 test-am:
        @(cd tests; $(MAKE) all am-test)
 
index 5bed21cc47cf909112b6a1a2121d2b1ea6f0a9ad..86cd7a122d70f919fa9ae62e5d634b005036600a 100755 (executable)
@@ -5,7 +5,12 @@ mkdir -p cvr
 cd cvr
 ../configure --disable-shared --enable-debug --enable-maintainer-mode --enable-code-coverage
 make -sj
+# the regular test run
 make TFLAGS=-n test-nonflaky
+# make all allocs/file operations fail
+#make TFLAGS=-n test-torture
+# do everything event-based
+make TFLAGS=-n test-event
 lcov -d . -c -o cov.lcov
 genhtml cov.lcov --output-directory coverage --title "curl code coverage"
 tar -cjf curl-coverage.tar.bz2 coverage
index 7fddeb025d3cdc6f9ccc5889fef1175ab7a44662..52eac3266844d7d9a87c8e4fdf113930b8057a44 100644 (file)
@@ -64,6 +64,7 @@ TEST_Q = -a -s
 TEST_AM = -a -am
 TEST_F = -a -p -r
 TEST_T = -a -t
+TEST_E = -a -e
 
 # !flaky means that it'll skip all tests using the flaky keyword
 TEST_NF = -a -p -r !flaky
@@ -91,6 +92,9 @@ nonflaky-test: perlcheck all
 torture-test: perlcheck all
        $(TEST) $(TEST_T) $(TFLAGS)
 
+event-test: perlcheck all
+       $(TEST) $(TEST_E) $(TFLAGS)
+
 .1.html:
        $(MAN2HTML)