#! /bin/sh # Copyright (C) 2011-2022 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 . # TAP support: # - some corner cases for TAP plan . test-init.sh . tap-setup.sh # ------------------------------------------------------------------------- cat > leading-repeated.test < trailing-repeated.test < leading-repeated.test < trailing-repeated.test < 1.test < 2.test < 3.test < 4.test < all.test < exp <<'END' PASS: all.test 1 PASS: all.test 2 ERROR: all.test - multiple test plans PASS: all.test 3 ERROR: all.test - multiple test plans PASS: all.test 4 ERROR: all.test - multiple test plans PASS: all.test 5 END $FGREP ': all.test' stdout > got cat exp cat got diff exp got # ------------------------------------------------------------------------- cat > all.test < exp <<'END' PASS: all.test 1 PASS: all.test 2 ERROR: all.test - multiple test plans ERROR: all.test 3 # UNPLANNED ERROR: all.test - too many tests run (expected 2, got 3) END $FGREP ': all.test' stdout > got cat exp cat got diff exp got # ------------------------------------------------------------------------- cat > all.test < exp <<'END' PASS: all.test 1 PASS: all.test 2 PASS: all.test 3 ERROR: all.test - multiple test plans ERROR: all.test 4 # AFTER LATE PLAN ERROR: all.test - multiple test plans ERROR: all.test 5 # AFTER LATE PLAN END $FGREP ': all.test' stdout > got cat exp cat got diff exp got :