#! /bin/sh
# Copyright (C) 2011-2021 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: whitespace normalization (or lack thereof) in the testsuite
# progress output on console. We keep all of these checks here in a single
# script so that a potential cosmetic change in the output format won't
# force us to tweak dozens of other tests (hopefully).
# See also related test 'tap-todo-skip-whitespace.sh'.
. test-init.sh
cat > Makefile.am << 'END'
TEST_LOG_COMPILER = cat
TESTS =
END
: > exp
spaces_a=${sp}${tab}${tab}${sp}${sp}${tab}
spaces_b=${tab}${tab}${sp}${tab}${sp}${sp}${sp}
#-----------------------------------------------------------------------
echo TESTS += numbers.test >> Makefile.am
cat > numbers.test <> exp <> Makefile.am
cat > description.test <> exp <> Makefile.am
cat > bailout.test <> exp <> Makefile.am
cat > bailout2.test <> exp <> Makefile.am
echo TESTS += cmnt.test >> Makefile.am
cat > cmnt.test <> exp < t
mv -f t exp
# We need the sort below to account for parallel make usage.
LC_ALL=C grep '[a-z0-9][a-z0-9]*\.test' stdout | LC_ALL=C sort > got
cat exp
cat got
diff exp got
: