]> sourceware.org Git - automake.git/commitdiff
* tests/Makefile.am (TESTS): Added maintclean.test.
authorTom Tromey <tromey@redhat.com>
Wed, 16 May 2001 04:09:49 +0000 (04:09 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 16 May 2001 04:09:49 +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 3a0b36ccc061f3344c8bc36a61357775accd9f0b..dfbbdd2ad077249ea8cac009f19409337c199607 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 2232fcbffd1cb06450137f329684b57c3e834a76..2489e022ce2f62be811709c71050204031d6a2ec 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 990c558537c7944b30ab7d6c5d12321025d033c4..d9f33b1a112f6e28cb109ba4f06e7f46fb162f73 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
This page took 0.036627 seconds and 5 git commands to generate.