diff options
Diffstat (limited to 'tests/vtexi.test')
-rwxr-xr-x | tests/vtexi.test | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/vtexi.test b/tests/vtexi.test index c28a356ad..e9a45111f 100755 --- a/tests/vtexi.test +++ b/tests/vtexi.test @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2011 Free Software +# Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -15,8 +15,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# Basic checks and some regressions testing on `version.texi' +# support for texinfo files. + . ./defs || Exit 1 +set -e + cat > Makefile.am << 'END' info_TEXINFOS = textutils.texi END @@ -30,9 +35,7 @@ END : > mdate-sh : > texinfo.tex -set -e - -$ACLOCAL || Exit 1 +$ACLOCAL $AUTOMAKE # Test for bug reported by Jim Meyering: @@ -41,25 +44,22 @@ $AUTOMAKE # textutils.info: textutils.texi # instead of # textutils.info: textutils.texi version.texi -# (Today this should be `textutils.info: version.texi') - -grep 'textutils\.info:.*version\.texi$' Makefile.in - +# Today this should be: +# $(srcdir)/textutils.info: $(srcdir)/version.texi +# or: +# $(srcdir)/textutils.info: version.texi +grep '^\$(srcdir)/textutils\.info:.*[ /]version\.texi *$' Makefile.in # Test for bug reported by Lars Hecking: # When running the first version of configure.ac aware automake, # @CONFIGURE_AC@ was not properly substituted. - $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in - # Check that the path to mdate-sh is correct. Over escaping of `$' # etc. once led to `\$\(srcdir\)/mdate-sh'. +# Filter out '$(srcdir)/mdate-sh'; there should be no occurrences +# of `.../mdate-sh' left then. +sed 's,\$(srcdir)/mdate-sh,,g' Makefile.in | grep '/mdate-sh' && Exit 1 -# Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh' -sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in| -# There must remain nothing. - grep . && Exit 1 - -Exit 0 +: |