From: Stefano Lattarini Date: Mon, 26 Apr 2010 11:58:25 +0000 (+0200) Subject: Extend test on `nostdinc' automake option. X-Git-Tag: v1.11.1b~83^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e5290d9200825c5f1353e60796131045bba4cb6;p=thirdparty%2Fautomake.git Extend test on `nostdinc' automake option. * tests/nostdinc.test: Enable `errexit' shell flag. Related and unrelated minor changes. Make the grepping of the generated Makefile.in slighty stricter. Generate and run configure, so that the generated Makefile can be grepped too. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index fdf2970e5..6d40c54a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-05-23 Stefano Lattarini + + Extend test on `nostdinc' automake option. + * tests/nostdinc.test: Enable `errexit' shell flag. Related and + unrelated minor changes. Make the grepping of the generated + Makefile.in slighty stricter. Generate and run configure, so that + the generated Makefile can be grepped too. + 2010-05-23 Ralf Wildenhues Make gnupload portable to EBCDIC hosts. diff --git a/tests/nostdinc.test b/tests/nostdinc.test index 96e30c5cd..43535ef77 100755 --- a/tests/nostdinc.test +++ b/tests/nostdinc.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1999, 2001, 2002, 2010 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 @@ -18,8 +18,11 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CC +AC_OUTPUT END cat > Makefile.am << 'END' @@ -28,8 +31,23 @@ bin_PROGRAMS = foo foo_SOURCES = foo.c END -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE + +grep '.*-I *\.' Makefile.in && Exit 1 + +# We'll test the fully-processed Makefile too. +$AUTOCONF + +# Test with $builddir != $srcdir +mkdir build +cd build +../configure +$EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1 + +# Test with $builddir = $srcdir +cd .. +./configure +$EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1 -$FGREP -e '-I.' Makefile.in && Exit 1 Exit 0