* tests/Makefile.am (TESTS): Added exeext.test.
authorTom Tromey <tromey@redhat.com>
Sun, 22 Jul 2001 22:01:17 +0000 (22:01 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 22 Jul 2001 22:01:17 +0000 (22:01 +0000)
(XFAIL_TESTS): Likewise.
* tests/exeext.test: New file.

ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/exeext.test [new file with mode: 0755]

index 3b82a94775b349d6e02a49cdab0eed04cbc723f2..c3a7ac1d473888a6737a6125d940794d32038d27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-22  Tom Tromey  <tromey@redhat.com>
+
+       * tests/Makefile.am (TESTS): Added exeext.test.
+       (XFAIL_TESTS): Likewise.
+       * tests/exeext.test: New file.
+
 2001-07-22  Tom Tromey  <tromey@redhat.com>
 
        * lib/am/progs.am (install-%DIR%PROGRAMS): Test for `prog, not
index 097a4f2787246cf462f76051f618e0e0de873d64..f9555df86592b05c8ba912fc02cf5376d86d159e 100644 (file)
@@ -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 @@ empty4.test \
 error.test \
 exdir.test \
 exdir2.test \
+exeext.test \
 exsource.test \
 ext.test \
 extra.test \
index 05edb274e867991bd9b6689b2fd4fa642b3a3eb5..ab82589b6c5013087ea2c80e4d7bcfb7674f56ff 100644 (file)
@@ -66,7 +66,7 @@ _am_include = @_am_include@
 _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 @@ empty4.test \
 error.test \
 exdir.test \
 exdir2.test \
+exeext.test \
 exsource.test \
 ext.test \
 extra.test \
@@ -382,8 +383,6 @@ yaccvpath.test
 
 
 EXTRA_DIST = defs ChangeLog-old $(TESTS)
-EXEEXT =
-OBJEXT = o
 subdir = tests
 mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
 CONFIG_CLEAN_FILES =
diff --git a/tests/exeext.test b/tests/exeext.test
new file mode 100755 (executable)
index 0000000..a522645
--- /dev/null
@@ -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