| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | #! /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:#  - unnumbered tests are OK, as long as their final total number#    agrees with the plan#  - test results without number get automatically numbered in the#    console progress output. test-init.sh. tap-setup.shcat > all.test <<'END'1..14okok foook - foo2not oknot ok barnot ok - bar2; See that we can intermingle different kind of results without; messing up the autonumberingokok # TODOnot ok # TODO who cares?oknot okok muuu # SKIPnot okokENDrun_make -O -e FAIL TESTS=all.test checkcount_test_results total=14 pass=6 fail=5 xpass=1 xfail=1 skip=1 error=0cat > exp <<'END'PASS: all.test 1PASS: all.test 2 fooPASS: all.test 3 - foo2FAIL: all.test 4FAIL: all.test 5 barFAIL: all.test 6 - bar2PASS: all.test 7XPASS: all.test 8 # TODOXFAIL: all.test 9 # TODO who cares?PASS: all.test 10FAIL: all.test 11SKIP: all.test 12 muuu # SKIPFAIL: all.test 13PASS: all.test 14END$FGREP ': all.test' stdout > gotcat expcat gotdiff exp got:
 |