]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Coverage for corner cases in derive_suffix.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 14 Nov 2009 20:58:34 +0000 (21:58 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 14 Nov 2009 20:58:34 +0000 (21:58 +0100)
Ensure unrelatex SUFFIXES entries and unrelated inference rules
are ignored silently.

* tests/ext3.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/ext3.test [new file with mode: 0755]

index 15bd1cbf1c83b7bbf81f40ff2a8d369ebe4a7f8e..c7b24835617ff86a81da1ac06705dc351233c020 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Coverage for corner cases in derive_suffix.
+       Ensure unrelatex SUFFIXES entries and unrelated inference rules
+       are ignored silently.
+       * tests/ext3.test: New test.
+       * tests/Makefile.am: Update.
+
        Coverage for user-provided _LINK variables.
        * tests/link_override.test: New test.
        * tests/Makefile.am: Adjust.
index 8107dec9ef9b4a120eda4163ea7436d2f944f278..519b40615201db90d755e5413767bb4341e14d06 100644 (file)
@@ -282,6 +282,7 @@ exeext4.test \
 exsource.test \
 ext.test \
 ext2.test \
+ext3.test \
 extra.test \
 extra3.test \
 extra4.test \
index 13989201dbfe2b531a2048e9d58bf3ddc35504de..4cc6a59bbc6624385c49947a0dd52212495850c4 100644 (file)
@@ -516,6 +516,7 @@ exeext4.test \
 exsource.test \
 ext.test \
 ext2.test \
+ext3.test \
 extra.test \
 extra3.test \
 extra4.test \
diff --git a/tests/ext3.test b/tests/ext3.test
new file mode 100755 (executable)
index 0000000..0a691c5
--- /dev/null
@@ -0,0 +1,41 @@
+#! /bin/sh
+# Copyright (C) 2009 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Cover corner cases of derive_suffix wrt. file extensions:
+# - extension declared with SUFFIXES but with no suffix rule for it
+# - extension with a suffix rule but none that leads us to $(OBJEXT)
+# In both cases, we don't try to create a rule; but we shouldn't
+# fail either, because magic might be happening behind our back.
+
+. ./defs || Exit 1
+
+set -e
+
+cat >> configure.in << 'END'
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = foo bar
+foo_SOURCES = foo.goo
+SUFFIXES = .goo
+bar_SOURCES = bar.woo
+.woo.zoo: ; making a zoo $@ from a woo $<
+END
+
+$ACLOCAL
+$AUTOMAKE
+
+Exit 0