* empty4.test: New file.
authorTom Tromey <tromey@redhat.com>
Tue, 27 Jul 1999 19:18:25 +0000 (19:18 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 27 Jul 1999 19:18:25 +0000 (19:18 +0000)
* Makefile.am (TESTS): Added empty4.test.

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

index dce99e8..44264e1 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-27  Tom Tromey  <tromey@cygnus.com>
+
+       * empty4.test: New file.
+       * Makefile.am (TESTS): Added empty4.test.
+
 1999-07-13  Tom Tromey  <tromey@cygnus.com>
 
        * empty3.test: New file.
index 2bbf9a6..1347f56 100644 (file)
@@ -88,6 +88,7 @@ else.test \
 empty.test \
 empty2.test \
 empty3.test \
+empty4.test \
 error.test \
 exdir.test \
 exdir2.test \
index df88623..4c2a38c 100644 (file)
@@ -154,6 +154,7 @@ else.test \
 empty.test \
 empty2.test \
 empty3.test \
+empty4.test \
 error.test \
 exdir.test \
 exdir2.test \
diff --git a/tests/empty4.test b/tests/empty4.test
new file mode 100755 (executable)
index 0000000..82cde29
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+# Test to make sure empty _SOURCES works.
+# From Paul Berrevoets.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_SUBST(ZOO_OBJ)
+END
+
+cat > Makefile.am << 'END'
+noinst_PROGRAMS = zoo
+zoo_SOURCES =
+EXTRA_zoo_SOURCES = bar.c foo.c
+zoo_DEPENDENCIES = $(ZOO_OBJ)
+zoo_LDADD = $(zoo_DEPENDENCIES)
+END
+
+$AUTOMAKE || exit 1
+fgrep zoo. Makefile.in && exit 1
+exit 0