]> sourceware.org Git - automake.git/commitdiff
* tests/ext2.test: New file. This bug is present in Automake 1.6.3
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 2 Aug 2002 16:10:28 +0000 (16:10 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 2 Aug 2002 16:10:28 +0000 (16:10 +0000)
and was fixed by the change on variable_conditions_permutations
and invert_conditions on 2002-05-16.
* tests/Makefile.am (TESTS): Add ext2.test.
Reported by Ladislav Strojil.

ChangeLog
THANKS
stamp-vti
tests/Makefile.am
tests/Makefile.in
tests/ext2.test [new file with mode: 0755]
version.texi

index 366ad88848a4c10d7e14be456939a61a1cca0b16..b3d4528fe4c4dd7fe0b6673d6cc1160da1aa5803 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-08-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * tests/ext2.test: New file.  This bug is present in Automake 1.6.3
+       and was fixed by the change on variable_conditions_permutations
+       and invert_conditions on 2002-05-16.
+       * tests/Makefile.am (TESTS): Add ext2.test.
+       Reported by Ladislav Strojil.
+
 2002-08-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * aclocal.in (parse_arguments): Add `dirlist' paths add the
diff --git a/THANKS b/THANKS
index 094ccd6e22defe4847434238a11c791df031bcd0..e503521e9e1caaec5a2e63142e9564de4d9627c3 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -102,6 +102,7 @@ Kevin Ryde          user42@zip.com.au
 Kevin Street           street@iname.com
 Klaus Reichl           Klaus.Reichl@alcatel.at
 L. Peter Deutsch       ghost@aladdin.com
+Ladislav Strojil       Ladislav.Strojil@seznam.cz
 Larry Jones            larry.jones@sdrc.com
 Lars Hecking           lhecking@nmrc.ucc.ie
 Lars J. Aas            larsa@sim.no
index f808452949d724826b334bcf92bc0ce00612a0f7..14f6563b1b1fd35977a18c34d51788bb24231af7 100644 (file)
--- a/stamp-vti
+++ b/stamp-vti
@@ -1,4 +1,4 @@
-@set UPDATED 31 July 2002
-@set UPDATED-MONTH July 2002
+@set UPDATED 2 August 2002
+@set UPDATED-MONTH August 2002
 @set EDITION 1.6c
 @set VERSION 1.6c
index 5f203ea203b6196d282f89340e231325cfc3567e..4701322b39f5b76ab3d6478128fd22ae2f690463 100644 (file)
@@ -155,6 +155,7 @@ exeext.test \
 exeext2.test \
 exsource.test \
 ext.test \
+ext2.test \
 extra.test \
 extra3.test \
 extra4.test \
index d279136f1538530e1c79e9594b781eb135c6fd9c..5aab2c7772da87aa59b934251cd7afe64306b641 100644 (file)
@@ -243,6 +243,7 @@ exeext.test \
 exeext2.test \
 exsource.test \
 ext.test \
+ext2.test \
 extra.test \
 extra3.test \
 extra4.test \
diff --git a/tests/ext2.test b/tests/ext2.test
new file mode 100755 (executable)
index 0000000..34c9ad4
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Regression test for a bug reported by Ladislav Strojil.
+# Using different extensions for the same language should not
+# output the build rules several times.
+
+. $srcdir/defs
+
+set -e
+
+cat >>configure.in <<EOF
+AC_PROG_CXX
+EOF
+
+cat >Makefile.am <<EOF
+bin_PROGRAMS = p q r
+p_SOURCES = a.cc b.cpp c.cxx
+q_SOURCES = sub/d.cc sub/e.cpp sub/f.cxx
+r_SOURCES = g.cc h.cpp i.cxx
+r_CXXFLAGS = -DFOO
+EOF
+
+$ACLOCAL
+$AUTOMAKE
+
+grep '\.o:' Makefile.in > rules
+cat rules
+
+# Here is a example of bogus output.  The rules are output several
+# times.
+#|  .cc.o:
+#|  d.o: sub/d.cc
+#|  e.o: sub/e.cpp
+#|  f.o: sub/f.cxx
+#|  r-g.o: g.cc
+#|  r-h.o: h.cpp
+#|  r-i.o: i.cxx
+#|  .cpp.o:
+#|  d.o: sub/d.cc
+#|  e.o: sub/e.cpp
+#|  f.o: sub/f.cxx
+#|  r-g.o: g.cc
+#|  r-h.o: h.cpp
+#|  r-i.o: i.cxx
+#|  .cxx.o:
+#|  #d.o: sub/d.cc
+#|  #e.o: sub/e.cpp
+#|  #f.o: sub/f.cxx
+#|  #r-g.o: g.cc
+#|  #r-h.o: h.cpp
+#|  #r-i.o: i.cxx
+
+# Bail out if we find a duplicate.
+$PERL -ne 'if (exists $a{$_}) { exit 1 } else { $a{$_} = 1 }' < rules
index f808452949d724826b334bcf92bc0ce00612a0f7..14f6563b1b1fd35977a18c34d51788bb24231af7 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 31 July 2002
-@set UPDATED-MONTH July 2002
+@set UPDATED 2 August 2002
+@set UPDATED-MONTH August 2002
 @set EDITION 1.6c
 @set VERSION 1.6c
This page took 0.036609 seconds and 5 git commands to generate.