| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | #! /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:#  - test plan preceding and/or following non-result TAP lines. test-init.sh. tap-setup.shcat > top1.test <<ENDnon-TAP line, ignored1..1ok 1ENDcat > top2.test <<ENDsomenon-TAPlinesareignored# and a TAP comment won't cause problems either1..2ok 1ok 2END# Try with a blank line too, just to be sure.cat > top3.test <<END1..1ok 1ENDcat > bot1.test <<ENDok 1 # SKIP1..1bla blah blah ...ENDcat > bot2.test <<ENDok 1ok 2not ok 3 # TODO1..3#@$%! (a cursing comment :-)END# Try with a blank line too, just to be sure.cat > bot3.test <<ENDok 1not ok 2 # TODOok 3 # SKIPok 4 # SKIP1..4ENDtests=$(echo *.test)for tap_flags in "" "--comments"; do  run_make -O TEST_LOG_DRIVER_FLAGS="$tap_flags" TESTS="$tests" check  count_test_results total=12 pass=7 xfail=2 skip=3 fail=0 xpass=0 error=0done:
 |