| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | #! /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:#  - the string "0" as a test description. test-init.sh. tap-setup.shcat > all.test << 'END'1..10ok 1 0ok - 0not ok 3 0not ok - 0ok 5 0 # TODOok - 0 # TODOnot ok 7 0 # TODOnot ok - 0 # TODOok 9 0 # SKIPok - 0 # SKIPENDrun_make -O -e FAIL checkcount_test_results total=10 pass=2 fail=2 xpass=2 xfail=2 skip=2 error=0cat > exp << 'END'PASS: all.test 1 0PASS: all.test 2 - 0FAIL: all.test 3 0FAIL: all.test 4 - 0XPASS: all.test 5 0 # TODOXPASS: all.test 6 - 0 # TODOXFAIL: all.test 7 0 # TODOXFAIL: all.test 8 - 0 # TODOSKIP: all.test 9 0 # SKIPSKIP: all.test 10 - 0 # SKIPEND$FGREP ': all.test' stdout > gotcat expcat gotdiff exp got:
 |