]> sourceware.org Git - automake.git/commitdiff
* cond9.test: New file. From Raja R Harinath.
authorTom Tromey <tromey@redhat.com>
Tue, 27 Apr 1999 15:52:42 +0000 (15:52 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 27 Apr 1999 15:52:42 +0000 (15:52 +0000)
* Makefile.am (TESTS): Added cond9.test.

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

index 4ebccefb1458b548dcd43be49a5c3ac264754446..3963f28844a5e79c7ade3e947cbad2fdcd49fa3f 100644 (file)
@@ -1,5 +1,8 @@
 1999-04-27  Tom Tromey  <tromey@cygnus.com>
 
+       * cond9.test: New file.  From Raja R Harinath.
+       * Makefile.am (TESTS): Added cond9.test.
+
        * pluseq8.test: New file.
        * Makefile.am (TESTS): Added pluseq8.test.
 
index 5c19aacf399983bdfc245f4bbd4e320f057bcb3f..6d96842ae434fa62bbf1eec460730b5cece36e73 100644 (file)
@@ -52,6 +52,7 @@ cond5.test \
 cond6.test \
 cond7.test \
 cond8.test \
+cond9.test \
 condman.test \
 condman2.test \
 conf2.test \
index 41ea38f318ed889ce459bc85bd602a2d33213078..472a77ad241ce8edd3f70bde806c23bd496388b0 100644 (file)
@@ -117,6 +117,7 @@ cond5.test \
 cond6.test \
 cond7.test \
 cond8.test \
+cond9.test \
 condman.test \
 condman2.test \
 conf2.test \
diff --git a/tests/cond9.test b/tests/cond9.test
new file mode 100755 (executable)
index 0000000..504323c
--- /dev/null
@@ -0,0 +1,31 @@
+#! /bin/sh
+
+# Test for bug in conditionals.  From Raja R Harinath.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(Makefile.am)
+AM_INIT_AUTOMAKE(foo,0.0)
+AM_CONDITIONAL(FALSE, [test x = y])
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+if FALSE
+this=
+else
+this=is_something_interesting
+endif
+
+echo-something:
+       echo '$(this)'
+END
+
+(autoconf --version) > /dev/null 2>&1 || exit 77
+
+$ACLOCAL \
+  && autoconf \
+  && $AUTOMAKE -a \
+  && ./configure \
+  && $MAKE echo-something | grep interesting > /dev/null
This page took 0.032938 seconds and 5 git commands to generate.