]> sourceware.org Git - automake.git/commitdiff
Test for PR automake/9:
authorTom Tromey <tromey@redhat.com>
Sun, 19 Dec 1999 09:11:46 +0000 (09:11 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 19 Dec 1999 09:11:46 +0000 (09:11 +0000)
* pr9.test: New file.
* Makefile.am (TESTS): Added pr9.test.

tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/pr9.test [new file with mode: 0755]

index 4f7994fe4ce36ace35fe1b1c8048258d81a336a8..a60b95ce3ca150c989ecfa034369714d4ebd90b5 100644 (file)
@@ -1,5 +1,9 @@
 1999-12-19  Tom Tromey  <tromey@cygnus.com>
 
+       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.
 
index 6252fe6ff69690781588e98c4e78ecee3f42fe45..3162b9fb34315af106dbc42af7bcfdc904743800 100644 (file)
@@ -185,6 +185,7 @@ pluseq7.test \
 pluseq8.test \
 ppf77.test \
 pr2.test \
+pr9.test \
 pr19.test \
 prefix.test \
 primary.test \
index 3a5d5040b7ef349e16dd25834da6c5d29b73c15f..88b2ebd4988e66dfead5d5595956c56afc467d90 100644 (file)
@@ -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 (executable)
index 0000000..29140aa
--- /dev/null
@@ -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
This page took 0.03347 seconds and 5 git commands to generate.