summaryrefslogtreecommitdiff
path: root/tests/targetclash.test
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2002-09-13 16:37:01 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2002-09-13 16:37:01 +0000
commitc1bea7251cfa9a89999a2e0bae58cccc224f3696 (patch)
tree4acba8501841fa624335b12ef47411a4ab982576 /tests/targetclash.test
parent676ef8e4bf5cdd85fbe18e10490b17f32b88b8ba (diff)
downloadautomake-c1bea7251cfa9a89999a2e0bae58cccc224f3696.tar.gz
* automake.texi (Building ctags and etags): Rename and adjust as ...
(Building true and false): ... this. * tests/targetclash.test: New file. * tests/specflags7.test, tests/specflags8.test: Adjust to build true and false. * tests/Makefile.am (TESTS): Add targetclash.test. (XFAIL_TESTS): Remove specflags7.test and specflags8.test.
Diffstat (limited to 'tests/targetclash.test')
-rwxr-xr-xtests/targetclash.test40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/targetclash.test b/tests/targetclash.test
new file mode 100755
index 000000000..91ca5ef98
--- /dev/null
+++ b/tests/targetclash.test
@@ -0,0 +1,40 @@
+#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake 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 2, or (at your option)
+# any later version.
+#
+# GNU Automake 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 autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# Check that target clashes are diagnosed.
+
+required=gcc
+. ./defs || exit 1
+
+set -e
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = ctags
+END
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE -a 2>stderr && exit 1
+cat stderr
+grep 'redefinition.*ctags' stderr