]> sourceware.org Git - automake.git/commitdiff
* tests/Makefile.am (TESTS): Added substtart.test.
authorTom Tromey <tromey@redhat.com>
Sat, 21 Jul 2001 22:46:13 +0000 (22:46 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 21 Jul 2001 22:46:13 +0000 (22:46 +0000)
(XFAIL_TESTS): Likewise.
* tests/substtarg.test: New file.

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

index e5dab0320e6a28938e91ffeb18c25f8940737530..f9a3ba43058bdd69817d03aad3cf219f3ab5dde3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-07-21  Tom Tromey  <tromey@redhat.com>
 
+       * tests/Makefile.am (TESTS): Added substtart.test.
+       (XFAIL_TESTS): Likewise.
+       * tests/substtarg.test: New file.
+
        * automake.in (handle_dist): Handle case where aux dir doesn't
        have a Makefile.  Fixes depdist.test.
        * tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
index 92ea1a1c004aef52ea08f17f0016540341ede487..097a4f2787246cf462f76051f618e0e0de873d64 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to create Makefile.in
 
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test substtarg.test
 
 TESTS =        \
 acinclude.test \
@@ -270,6 +270,7 @@ subobj6.test \
 subobj7.test \
 subobj8.test \
 subst.test \
+substtarg.test \
 suffix.test \
 suffix2.test \
 suffix3.test \
index 5699c55f292a1b561a52f7bf6e4e343c71e1ed26..05edb274e867991bd9b6689b2fd4fa642b3a3eb5 100644 (file)
@@ -66,7 +66,7 @@ _am_include = @_am_include@
 _am_quote = @_am_quote@
 install_sh = @install_sh@
 
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test substtarg.test
 
 TESTS = \
 acinclude.test \
@@ -336,6 +336,7 @@ subobj6.test \
 subobj7.test \
 subobj8.test \
 subst.test \
+substtarg.test \
 suffix.test \
 suffix2.test \
 suffix3.test \
diff --git a/tests/substtarg.test b/tests/substtarg.test
new file mode 100755 (executable)
index 0000000..ded0284
--- /dev/null
@@ -0,0 +1,34 @@
+#! /bin/sh
+
+# Test that substitutions in variables work.
+# From Lars J. Aas.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(fakelib.c)
+AM_INIT_AUTOMAKE(fakelib,0.0)
+AC_PROG_CC
+RANLIB=:
+AC_SUBST(RANLIB)
+SUBST=hei
+AC_SUBST(SUBST)
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+noinst_LIBRARIES = libfake@SUBST@.a
+
+libfake@SUBST@_a_SOURCES = abra.c kadabra.c
+
+# then we override the target rule:
+libfake@SUBST@.a: Makefile $(libfake@SUBST@_a_OBJECTS) $(libfake@SUBST@_a_DEPENDENCIES)
+       @echo here we do some custom stuff, instead of invoking the linker
+END
+
+set -e
+
+$ACLOCAL
+$AUTOMAKE
+num=`grep '^libfake@SUBST@.a:' Makefile.in | wc -l`
+test $num -eq 1
This page took 0.037185 seconds and 5 git commands to generate.