| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 | #! /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:#  - don't spuriously recognize negative TAP result numbers, but correctly#    interpret them as test descriptions instead. test-init.sh. tap-setup.shcat > all.test <<'END'1..7ok -1not ok -3ok -2 # SKIPnot ok -5 # TODOok -04 # TODOok -121not ok -50000ENDrun_make -O -e FAIL checkcount_test_results total=7 pass=2 fail=2 xpass=1 xfail=1 skip=1 error=0cat > exp <<'END'PASS: all.test 1 -1FAIL: all.test 2 -3SKIP: all.test 3 -2 # SKIPXFAIL: all.test 4 -5 # TODOXPASS: all.test 5 -04 # TODOPASS: all.test 6 -121FAIL: all.test 7 -50000END$FGREP ': all.test' stdout > gotcat expcat gotdiff exp got:
 |