Hash :
620ba14f
Author :
Date :
2011-11-10T10:50:35
tests: various minor tweakings, mostly related to AM_PROG_AR * tests/alloca2.test: Ensure we don't experience a spurious failure due to a missing `AM_PROG_AR' macro or a missing `ar-lib' auxiliary script. * tests/libtool4.test: Likewise. * tests/ldadd.test: Likewise. Since we are at it, make grepping of automake stderr stricter. * tests/reqd2.test: Likewise. * tests/pr211.test: Ensure automake fails also with `-Wnone', since the error we are testing for is an hard error, not a mere warning. * tests/syntax.test: Likewise, and ensure we don't fail to other errors by removing use of `lib_LTLIBRARIES' in Makefile.am. Since we are at it, make grepping of automake stderr stricter.
#! /bin/sh
# Copyright (C) 1998, 2001, 2002, 2003, 2011 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/>.
# Test for error for bad syntax.
. ./defs || Exit 1
set -e
cat > Makefile.am << 'END'
foo = q \
bin_SCRIPTS = foo.sh
END
$ACLOCAL
AUTOMAKE_fails -Wnone
grep '^Makefile\.am:2:.*blank line following trailing backslash' stderr
: