From 0e37127095ae523224d269cef20ff33495dd810a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 26 May 1998 07:46:14 +0000 Subject: [PATCH] added new syntax checking test --- tests/ChangeLog | 4 ++++ tests/Makefile.am | 2 +- tests/Makefile.in | 2 +- tests/syntax.test | 14 ++++++++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 tests/syntax.test diff --git a/tests/ChangeLog b/tests/ChangeLog index 20f280b..5c03731 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +Tue May 26 01:44:37 1998 Tom Tromey + + * syntax.test: New file. + Sun Apr 5 15:26:42 1998 Tom Tromey * version3.test: Increased version number to ensure failure for a diff --git a/tests/Makefile.am b/tests/Makefile.am index eadfd75..b49f05e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -31,7 +31,7 @@ aclocal.test alpha.test whoami.test unused.test condman.test \ texinfo5.test aclocali.test texinfo6.test condman2.test colon4.test \ java.test sinclude.test javaprim.test javasubst.test aclocalii.test \ lex2.test libobj8.test version3.test instdata.test exdir2.test \ -colon5.test library.test +colon5.test library.test syntax.test EXTRA_DIST = defs $(TESTS) diff --git a/tests/Makefile.in b/tests/Makefile.in index 18831d1..c77eb9a 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -94,7 +94,7 @@ aclocal.test alpha.test whoami.test unused.test condman.test \ texinfo5.test aclocali.test texinfo6.test condman2.test colon4.test \ java.test sinclude.test javaprim.test javasubst.test aclocalii.test \ lex2.test libobj8.test version3.test instdata.test exdir2.test \ -colon5.test library.test +colon5.test library.test syntax.test EXTRA_DIST = defs $(TESTS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/tests/syntax.test b/tests/syntax.test new file mode 100755 index 0000000..8ca0392 --- /dev/null +++ b/tests/syntax.test @@ -0,0 +1,14 @@ +#! /bin/sh + +# Test for error for bad syntax. + +. $srcdir/defs || exit 1 + +cat > Makefile.am << 'END' +foo = q \ + +lib_LTLIBRARIES = foo.la +END + +$AUTOMAKE && exit 1 +exit 0 -- 2.7.4