From: Tom Tromey Date: Sun, 19 Dec 1999 09:11:46 +0000 (+0000) Subject: Test for PR automake/9: X-Git-Tag: Release-1-4b~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=807452d3d625fdd7b5ca5a230d8cd2ab42794217;p=thirdparty%2Fautomake.git Test for PR automake/9: * pr9.test: New file. * Makefile.am (TESTS): Added pr9.test. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 4f7994fe4..a60b95ce3 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,9 @@ 1999-12-19 Tom Tromey + Test for PR automake/9: + * pr9.test: New file. + * Makefile.am (TESTS): Added pr9.test. + * pr19.test: Fail gracefully if gzip missing. * install2.test: Fail gracefully if gzip missing. diff --git a/tests/Makefile.am b/tests/Makefile.am index 6252fe6ff..3162b9fb3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -185,6 +185,7 @@ pluseq7.test \ pluseq8.test \ ppf77.test \ pr2.test \ +pr9.test \ pr19.test \ prefix.test \ primary.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 3a5d5040b..88b2ebd49 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -252,6 +252,7 @@ pluseq7.test \ pluseq8.test \ ppf77.test \ pr2.test \ +pr9.test \ pr19.test \ prefix.test \ primary.test \ diff --git a/tests/pr9.test b/tests/pr9.test new file mode 100755 index 000000000..29140aa0e --- /dev/null +++ b/tests/pr9.test @@ -0,0 +1,42 @@ +#! /bin/sh + +# Test for bug in PR 9. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(Makefile.am) +AC_CONFIG_AUX_DIR(support) +AM_INIT_AUTOMAKE(pr9, 0) +AC_OUTPUT(Makefile) +END + +: > Makefile.am + +# Remove some files installed by defs. These will be reinstalled by +# automake. +rm -f install-sh missing mkinstalldirs + +mkdir support + +# Fail gracefully if no autoconf. +(autoconf --version) > /dev/null 2>&1 || exit 0 + +# Likewise for gzip. +(gzip --version) > /dev/null 2>&1 || exit 0 + +$ACLOCAL || exit 1 + +autoconf || exit 1 +$AUTOMAKE -a -c || exit 1 +./configure || exit 1 +$MAKE || exit 1 +$MAKE distcheck || exit 1 + +gunzip pr9-0.tar.gz || exit 1 + +(tar tf pr9-0.tar | fgrep support) || exit 1 + +# Opportunistic test for bug noticed while writing this test case. +test -f depcomp && exit 1 +exit 0