From: Tom Tromey Date: Fri, 10 Dec 1999 07:47:26 +0000 (+0000) Subject: * install2.test: New file. X-Git-Tag: Release-1-4b~164 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e123423f4f97b84c0c06ef0961946c8b55f1e65b;p=automake.git * install2.test: New file. * Makefile.am (TESTS): Added install2.test. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 7b51c54b..092c4aeb 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 1999-12-10 Tom Tromey + * install2.test: New file. + * Makefile.am (TESTS): Added install2.test. + * specflags5.test: New file. * Makefile.am (TESTS): Added specflags5.test. diff --git a/tests/Makefile.am b/tests/Makefile.am index 0dac5afe..d4b5d711 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -115,6 +115,7 @@ info.test \ insh.test \ insh2.test \ install.test \ +install2.test \ installsh.test \ instdata.test \ instexec.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 23fe5da9..bdc63234 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -182,6 +182,7 @@ info.test \ insh.test \ insh2.test \ install.test \ +install2.test \ installsh.test \ instdata.test \ instexec.test \ diff --git a/tests/install2.test b/tests/install2.test new file mode 100755 index 00000000..d2fc2d3a --- /dev/null +++ b/tests/install2.test @@ -0,0 +1,35 @@ +#! /bin/sh + +# Test for bug in `make dist' +# From Pavel Roskin. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT +AM_INIT_AUTOMAKE(foo, 0.1) +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +SUBDIRS = . +END + +# Remove some dummy files added by defs. +rm -f install-sh mkinstalldirs missing + +# Fail gracefully if no autoconf. +(autoconf --version) > /dev/null 2>&1 || exit 0 + +$ACLOCAL || exit 1 +autoconf || exit 1 +$AUTOMAKE -a || exit 1 + +chmod 000 Makefile.am + +./configure || exit 1 +$MAKE dist || exit 1 + +# FIXME. +gunzip foo-0.1.tar.gz || exit 1 +tar tf foo-0.1.tar | fgrep Makefile.am