* tests/Makefile.am (TESTS): Added maintclean.test.
authorTom Tromey <tromey@redhat.com>
Wed, 16 May 2001 04:09:50 +0000 (04:09 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 16 May 2001 04:09:50 +0000 (04:09 +0000)
(XFAIL_TESTS): Likewise.
* tests/maintclean.test: New file.

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

index 3a0b36c..dfbbdd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-05-15  Tom Tromey  <tromey@redhat.com>
 
+       * tests/Makefile.am (TESTS): Added maintclean.test.
+       (XFAIL_TESTS): Likewise.
+       * tests/maintclean.test: New file.
+
        Fixes PR automake/175:
        * tests/target-cflags.test: Use $needs_gnu_make.
        * tests/exsource.test: Use $needs_gnu_make.
index 2232fcb..2489e02 100644 (file)
@@ -2,7 +2,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test maintclean.test
 
 TESTS =        \
 acinclude.test \
@@ -173,6 +173,7 @@ link_f_cxx.test     \
 link_f_only.test \
 lisp.test \
 ltlibobjs.test \
+maintclean.test \
 make.test \
 makevars.test \
 man.test \
index 990c558..d9f33b1 100644 (file)
@@ -70,7 +70,7 @@ install_sh = @install_sh@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test maintclean.test
 
 TESTS = \
 acinclude.test \
@@ -241,6 +241,7 @@ link_f_cxx.test     \
 link_f_only.test \
 lisp.test \
 ltlibobjs.test \
+maintclean.test \
 make.test \
 makevars.test \
 man.test \
diff --git a/tests/maintclean.test b/tests/maintclean.test
new file mode 100755 (executable)
index 0000000..3327dc2
--- /dev/null
@@ -0,0 +1,37 @@
+#! /bin/sh
+
+# Make sure that `maintainer-clean' removes Makefile.in, configure,
+# and aclocal.m4.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(Makefile.am)
+AM_INIT_AUTOMAKE(foo,0,no)
+AM_MAKE_INCLUDE
+AC_OUTPUT(Makefile)
+END
+
+: > Makefile.am
+
+$needs_autoconf
+
+set -e
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+
+export ACLOCAL
+export AUTOCONF
+export AUTOMAKE
+
+./configure
+
+$MAKE maintainer-clean
+
+test -f Makefile.in && exit 1
+test -f configure && exit 1
+test -f aclocal.m4 && exit 1
+
+exit 0