From: Stefano Lattarini Date: Sun, 17 Jan 2010 13:20:15 +0000 (+0100) Subject: Slighty improve tests acoutbs.test and acoutbs2.test. X-Git-Tag: v1.11.1b~97^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05a3690f9be228bd4ac3342c7a7e4c0e9c328780;p=thirdparty%2Fautomake.git Slighty improve tests acoutbs.test and acoutbs2.test. * tests/acoutbs2.test: Enable `errexit' shell flag. Check that autoconf and configure work, that the file `zot' is created by configure, and that no file containing a backslash in its name is created. * tests/acoutbs.test: Likewise, plus updated copyright years. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index da0968a1a..c0270c332 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-01-17 Stefano Lattarini + Slighty improve tests acoutbs.test and acoutbs2.test. + * tests/acoutbs2.test: Enable `errexit' shell flag. Check that + autoconf and configure work, that the file `zot' is created by + configure, and that no file containing a backslash in its name is + created. + * tests/acoutbs.test: Likewise, plus updated copyright years. + Fix test acoutbs2.test. * tests/acoutbs2: In the generated configure.in: add proper calls to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of diff --git a/tests/acoutbs.test b/tests/acoutbs.test index 0f5eb4874..0ce981c32 100755 --- a/tests/acoutbs.test +++ b/tests/acoutbs.test @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1996, 2000, 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 @@ -19,6 +19,8 @@ . ./defs || Exit 1 +set -e + cat > configure.in << 'END' AC_INIT AM_INIT_AUTOMAKE(nonesuch, nonesuch) @@ -29,5 +31,13 @@ END : > Makefile.am : > zot.in -$ACLOCAL || Exit 1 +$ACLOCAL +$AUTOCONF $AUTOMAKE + +./configure + +test -f zot || Exit 1 +ls -a | grep '\\' && Exit 1 + +: diff --git a/tests/acoutbs2.test b/tests/acoutbs2.test index 3b56a2167..5e03c08ba 100755 --- a/tests/acoutbs2.test +++ b/tests/acoutbs2.test @@ -19,6 +19,8 @@ . ./defs || Exit 1 +set -e + cat > configure.in << 'END' AC_INIT AM_INIT_AUTOMAKE(nonesuch, nonesuch) @@ -34,5 +36,13 @@ END : > Makefile.am : > zot.in -$ACLOCAL || Exit 1 +$ACLOCAL +$AUTOCONF $AUTOMAKE + +./configure + +test -f zot || Exit 1 +ls -a | grep '\\' && Exit 1 + +: