Loading Makefile.am +3 −0 Original line number Diff line number Diff line Loading @@ -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) Loading scripts/coverage.sh +5 −0 Original line number Diff line number Diff line Loading @@ -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 tests/Makefile.am +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) Loading Loading
Makefile.am +3 −0 Original line number Diff line number Diff line Loading @@ -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) Loading
scripts/coverage.sh +5 −0 Original line number Diff line number Diff line Loading @@ -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
tests/Makefile.am +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) Loading