| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | #! /bin/sh# Copyright (C) 2011-2017 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 <http://www.gnu.org/licenses/>.# TAP support:#  - interactions between "TAP plan with SKIP" and logging of earlier or#    later TAP or non-TAP text. test-init.sh. tap-setup.shecho TEST_LOG_DRIVER_FLAGS = --comments >> Makefilecat > foo.test <<END1..0a non-TAP line# a commentENDcat > foo2.test <<ENDa non-TAP line 2# a comment 21..0ENDcat > bar.test <<END# an early commentan early non-TAP line $tab1..0 # SKIP# a later commenta later non-TAP lineENDrun_make -O TESTS='foo.test foo2.test bar.test' checkcount_test_results total=3 pass=0 fail=0 xpass=0 xfail=0 skip=3 error=0grep '^# foo\.test: a comment$' stdoutgrep '^# foo2\.test: a comment 2$' stdoutgrep '^# bar\.test: an early comment$' stdoutgrep '^# bar\.test: a later comment$' stdoutcat foo.logcat foo2.logcat bar.loggrep '^a non-TAP line$' foo.loggrep '^# a comment$' foo.loggrep '^a non-TAP line 2$' foo2.loggrep '^# a comment 2$' foo2.loggrep '^# an early comment' bar.loggrep '^an early non-TAP line$' bar.loggrep '^# a later comment' bar.loggrep '^a later non-TAP line$' bar.loggrep "^ $tab$" bar.log:
 |