[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: FYI: exeext test
From: |
Tom Tromey |
Subject: |
Patch: FYI: exeext test |
Date: |
22 Jul 2001 16:26:29 -0600 |
I'm checking this in.
This checks for proper behavior when we rewrite PROGRAMS to include
EXEEXT.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
* tests/Makefile.am (TESTS): Added exeext.test.
(XFAIL_TESTS): Likewise.
* tests/exeext.test: New file.
2001-07-22 Tom Tromey <address@hidden>
Index: tests/Makefile.am
===================================================================
RCS file: /cvs/automake/automake/tests/Makefile.am,v
retrieving revision 1.328
diff -u -r1.328 Makefile.am
--- tests/Makefile.am 2001/07/21 22:46:14 1.328
+++ tests/Makefile.am 2001/07/22 21:59:32
@@ -1,6 +1,6 @@
## Process this file with automake to create Makefile.in
-XFAIL_TESTS = subdir5.test substtarg.test
+XFAIL_TESTS = subdir5.test substtarg.test exeext.test
TESTS = \
acinclude.test \
@@ -120,6 +120,7 @@
error.test \
exdir.test \
exdir2.test \
+exeext.test \
exsource.test \
ext.test \
extra.test \
Index: tests/Makefile.in
===================================================================
RCS file: /cvs/automake/automake/tests/Makefile.in,v
retrieving revision 1.428
diff -u -r1.428 Makefile.in
--- tests/Makefile.in 2001/07/21 22:46:14 1.428
+++ tests/Makefile.in 2001/07/22 21:59:32
@@ -66,7 +66,7 @@
_am_quote = @_am_quote@
install_sh = @install_sh@
-XFAIL_TESTS = subdir5.test substtarg.test
+XFAIL_TESTS = subdir5.test substtarg.test exeext.test
TESTS = \
acinclude.test \
@@ -186,6 +186,7 @@
error.test \
exdir.test \
exdir2.test \
+exeext.test \
exsource.test \
ext.test \
extra.test \
@@ -382,8 +383,6 @@
EXTRA_DIST = defs ChangeLog-old $(TESTS)
-EXEEXT =
-OBJEXT = o
subdir = tests
mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
CONFIG_CLEAN_FILES =
Index: tests/exeext.test
===================================================================
RCS file: exeext.test
diff -N exeext.test
--- /dev/null Tue May 5 13:32:27 1998
+++ tests/exeext.test Sun Jul 22 14:59:32 2001
@@ -0,0 +1,34 @@
+#! /bin/sh
+
+# Test to make sure `.' in an exe name doesn't fool us.
+# Report from Robert Collins.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_EXEEXT
+END
+
+cat > Makefile.am << 'END'
+## Use a different dir for each to make grep easy.
+bin_PROGRAMS = maude
+sbin_PROGRAMS = maude.static
+## We don't define this one for now. Probably it is an error.
+## noinst_PROGRAMS = maude2.exe
+check_PROGRAMS = maude3$(EXEEXT)
+END
+
+set -e
+
+$ACLOCAL
+$AUTOMAKE
+
+grep '^maude$(EXEEXT):' Makefile.in
+grep 'bin_PROGRAMS =.*maude$(EXEEXT)' Makefile.in
+
+grep '^maude\.static$(EXEEXT):' Makefile.in
+grep 'sbin_PROGRAMS =.*maude\.static$(EXEEXT)' Makefile.in
+
+grep '^maude3$(EXEEXT):' Makefile.in
+grep 'check_PROGRAMS =.*maude3$(EXEEXT)' Makefile.in
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch: FYI: exeext test,
Tom Tromey <=