diff options
author | Tom Tromey <tromey@redhat.com> | 1999-01-07 11:34:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1999-01-07 11:34:14 +0000 |
commit | bdc2173a1235c2b21b2d2b0fc407d01b67fec76b (patch) | |
tree | 559ce8eaa727876725e1953129e7601e5c21af6b /tests | |
parent | f3789977fbab9b2c03938396c0470d111a2067e4 (diff) | |
download | automake-bdc2173a1235c2b21b2d2b0fc407d01b67fec76b.tar.gz |
* include.test: New file.
* Makefile.am (TESTS): Added include.test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/Makefile.am | 41 | ||||
-rwxr-xr-x | tests/include.test | 17 |
3 files changed, 43 insertions, 20 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index f03060ba2..46b418a3b 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +1999-01-07 Tom Tromey <tromey@cygnus.com> + + * include.test: New file. + * Makefile.am (TESTS): Added include.test. + 1998-12-21 Tom Tromey <tromey@cygnus.com> * insthook.test: Updated to fail when it should. diff --git a/tests/Makefile.am b/tests/Makefile.am index 099981635..696f6f686 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,26 +18,27 @@ dejagnu.test depacl.test depacl2.test depend.test depend2.test \ depend3.test discover.test distdir.test dup.test dup2.test else.test \ empty.test error.test exdir.test exdir2.test exsource.test extra.test \ extra3.test extra4.test flibs.test fnoc.test fo.test fonly.test \ -fpinst2.test fpinstall.test gnits.test implicit.test info.test \ -insh.test insh2.test install.test installsh.test instdata.test \ -instexec.test insthook.test instman.test interp.test interp2.test \ -java.test javaprim.test javasubst.test ldadd.test lex.test lex2.test \ -libobj.test libobj2.test libobj3.test libobj4.test libobj5.test \ -libobj6.test libobj7.test libobj8.test library.test link_c_cxx.test \ -link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test \ -lisp.test mdate.test mdate2.test mkinst2.test mkinstall.test \ -noinst.test number.test objc.test obsolete.test order.test outdir.test \ -output.test output2.test output3.test output4.test output5.test \ -package.test parse.test pluseq.test pluseq2.test pluseq3.test \ -pluseq4.test prefix.test primary.test primary2.test proginst.test \ -ranlib.test recurs.test recurs2.test remake.test remake2.test req.test \ -rulepat.test scripts.test seenc.test sinclude.test spell.test \ -spell2.test spell3.test spelling.test stamph.test stdlib.test \ -subdir.test subdir2.test subst.test symlink.test syntax.test tags.test \ -tagsub.test target.test texinfo.test texinfo2.test texinfo3.test \ -texinfo4.test texinfo5.test texinfo6.test texinfo7.test unused.test \ -version.test version2.test version3.test vpath.test vtexi.test \ -vtexi2.test whoami.test xsource.test yacc.test yaccpp.test +fpinst2.test fpinstall.test gnits.test implicit.test include.test \ +info.test insh.test insh2.test install.test installsh.test \ +instdata.test instexec.test insthook.test instman.test interp.test \ +interp2.test java.test javaprim.test javasubst.test ldadd.test \ +lex.test lex2.test libobj.test libobj2.test libobj3.test libobj4.test \ +libobj5.test libobj6.test libobj7.test libobj8.test library.test \ +link_c_cxx.test link_f_c.test link_f_c_cxx.test link_f_cxx.test \ +link_f_only.test lisp.test mdate.test mdate2.test mkinst2.test \ +mkinstall.test noinst.test number.test objc.test obsolete.test \ +order.test outdir.test output.test output2.test output3.test \ +output4.test output5.test package.test parse.test pluseq.test \ +pluseq2.test pluseq3.test pluseq4.test prefix.test primary.test \ +primary2.test proginst.test ranlib.test recurs.test recurs2.test \ +remake.test remake2.test req.test rulepat.test scripts.test seenc.test \ +sinclude.test spell.test spell2.test spell3.test spelling.test \ +stamph.test stdlib.test subdir.test subdir2.test subst.test \ +symlink.test syntax.test tags.test tagsub.test target.test \ +texinfo.test texinfo2.test texinfo3.test texinfo4.test texinfo5.test \ +texinfo6.test texinfo7.test unused.test version.test version2.test \ +version3.test vpath.test vtexi.test vtexi2.test whoami.test \ +xsource.test yacc.test yaccpp.test EXTRA_DIST = defs $(TESTS) diff --git a/tests/include.test b/tests/include.test new file mode 100755 index 000000000..179ab612b --- /dev/null +++ b/tests/include.test @@ -0,0 +1,17 @@ +#! /bin/sh + +# Test to make sure header vars defined only once when including. +# Report from Marcus G. Daniels. + +. $srcdir/defs || exit 1 + +cat > Makefile.am << 'END' +include foo +END + +: > foo + +$AUTOMAKE || exit 1 +len="`grep '^srcdir' Makefile.in | wc -l`" +echo "len = $len" +test $len -eq 1 |