From: Stefano Lattarini Date: Sun, 21 Aug 2011 09:01:51 +0000 (+0200) Subject: coverage: non-directive comments in TAP results are preserved X-Git-Tag: ng-0.5a~89^2~97^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135cfa3b653af3c4cc9bec95f813237263ae02ef;p=thirdparty%2Fautomake.git coverage: non-directive comments in TAP results are preserved * tests/tap-result-comment.test: New test. * tests/Makefile.am (tap_with_common_setup_tests): Update. --- diff --git a/ChangeLog b/ChangeLog index 23a7ba21a..f5d19e35c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-08-21 Stefano Lattarini + + coverage: non-directive comments in TAP results are preserved + * tests/tap-result-comment.test: New test. + * tests/Makefile.am (tap_with_common_setup_tests): Update. + 2011-08-20 Stefano Lattarini coverage: TAP result number followed by non-whitespace word boundary diff --git a/tests/Makefile.am b/tests/Makefile.am index c1ab7659d..741720c50 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1201,6 +1201,7 @@ tap-planskip-later-errors.test \ tap-realtime.test \ tap-test-number-0.test \ tap-recheck-logs.test \ +tap-result-comment.test \ tap-todo-skip-together.test \ tap-todo-skip-whitespace.test \ tap-todo-skip.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 3ad24a03d..9b0de2725 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1442,6 +1442,7 @@ tap-planskip-later-errors.test \ tap-realtime.test \ tap-test-number-0.test \ tap-recheck-logs.test \ +tap-result-comment.test \ tap-todo-skip-together.test \ tap-todo-skip-whitespace.test \ tap-todo-skip.test \ diff --git a/tests/tap-result-comment.test b/tests/tap-result-comment.test new file mode 100755 index 000000000..0cfee01e5 --- /dev/null +++ b/tests/tap-result-comment.test @@ -0,0 +1,54 @@ +#! /bin/sh +# Copyright (C) 2011 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# TAP support: +# - non-directive comments in TAP results are kept verbatim + +parallel_tests=yes +. ./defs || Exit 1 + +. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh" + +cat > all.test <stdout && { cat stdout; Exit 1; } +cat stdout + +count_test_results total=5 pass=3 fail=2 xpass=0 xfail=0 skip=0 error=0 + +# Don't be too strict about trailing white space. +$FGREP ': all.test' stdout | sed "s/[$sp$tab]*$//" > got + +cat > exp <