From: Tom Tromey Date: Tue, 26 May 1998 07:46:14 +0000 (+0000) Subject: added new syntax checking test X-Git-Tag: Release-1-3b~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e37127095ae523224d269cef20ff33495dd810a;p=thirdparty%2Fautomake.git added new syntax checking test --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 20f280baa..5c03731a8 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 eadfd7516..b49f05e41 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 18831d15d..c77eb9a87 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 000000000..8ca03920d --- /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