summaryrefslogtreecommitdiff
path: root/tests/exeext.test
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-07-22 22:01:17 +0000
committerTom Tromey <tromey@redhat.com>2001-07-22 22:01:17 +0000
commit730bcba2754632c2e15a30b7f06670c6ed30c0e6 (patch)
tree8794efd67bea219f0e7911815dc117422aa99c41 /tests/exeext.test
parent3b5fdb7810feef4fc297a7bc5bd4ecf66a7ff6c7 (diff)
downloadautomake-730bcba2754632c2e15a30b7f06670c6ed30c0e6.tar.gz
* tests/Makefile.am (TESTS): Added exeext.test.
(XFAIL_TESTS): Likewise. * tests/exeext.test: New file.
Diffstat (limited to 'tests/exeext.test')
-rwxr-xr-xtests/exeext.test34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/exeext.test b/tests/exeext.test
new file mode 100755
index 000000000..a5226451b
--- /dev/null
+++ b/tests/exeext.test
@@ -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