]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Several *-local in a rule do not work.
authorAkim Demaille <akim@lrde.epita.fr>
Sun, 25 Nov 2007 16:43:17 +0000 (17:43 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 25 Nov 2007 16:43:17 +0000 (17:43 +0100)
* tests/all.test: Check this case.
Use set -e.
* tests/Makefile.am (XFAIL_TESTS): Add it.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/all.test

index 314b2d68c0d623e82a4f1e41858725a8e9967d5d..ac528fbd12748d3d5b9340c852bb4dc2a3e13056 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-25  Akim Demaille  <akim@lrde.epita.fr>
+
+       Several *-local in a rule do not work.
+       * tests/all.test: Check this case.
+       Use set -e.
+       * tests/Makefile.am (XFAIL_TESTS): Add it.
+
 2007-11-25  Akim Demaille  <akim@lrde.epita.fr>
 
        Fix uses of am__strip_dir.
index c4e7fc6d4e3249a3d8a83a0edfc31f6657782922..80d3d712a86517ef1dba8b21eea8b6fee56b9add 100644 (file)
@@ -1,6 +1,10 @@
 ## Process this file with automake to create Makefile.in
 
-XFAIL_TESTS = auxdir2.test cond17.test txinfo5.test
+XFAIL_TESTS =                                  \
+all.test                                       \
+auxdir2.test                                   \
+cond17.test                                    \
+txinfo5.test
 
 TESTS =        \
 aclibobj.test \
index e5e71ef00736e64e5b3aae43b7357973101c37d5..3b6a92ae6a25a785bb4c725f7708a2c42906f9a3 100644 (file)
@@ -149,7 +149,12 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-XFAIL_TESTS = auxdir2.test cond17.test txinfo5.test
+XFAIL_TESTS = \
+all.test                                       \
+auxdir2.test                                   \
+cond17.test                                    \
+txinfo5.test
+
 TESTS = \
 aclibobj.test \
 aclocal.test \
index e9ffb70b6a6ea4eeb362747223f00bab69841af3..a0d749e5e404adaa351b5b39734f506a50aae372 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1999, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2007  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
 # Test to make sure all-local and other -local targets work correctly.
 
 . ./defs || exit 1
+set -e
 
-for target in all install-exec install-data uninstall; do
+targets='all install-exec install-data uninstall'
+for target in $targets; do
    echo "Doing $target"
    echo "${target}-local:" > Makefile.am
 
-   $ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+   $ACLOCAL
+   $AUTOMAKE
 
    $FGREP "${target}-local ${target}-local" Makefile.in && exit 1
 done
+
+# Several *-local's in a single rule.
+echo "Doing $targets"
+echo "$targets:" | sed -e 's/[ :]/-local&/g' > Makefile.am
+$ACLOCAL
+$AUTOMAKE
+
+for target in $targets; do
+  $EGREP "${target}-am:.*${target}-local" Makefile.in
+done
+
 exit 0