[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help requested for Automake.
From: |
Mathieu Lirzin |
Subject: |
Re: Help requested for Automake. |
Date: |
Sat, 04 Mar 2017 10:55:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello Carl,
carl hansen <address@hidden> writes:
> On Fri, Mar 3, 2017 at 1:37 PM, Mathieu Lirzin <address@hidden> wrote:
>
> I have recently updated the texinfo.tex distributed in Automake from
> version 2013-02-01.11 to version 2017-01-14.15
>
> Unfortunately this had the consequence of making 2 tests of Automake test
> suite fail. The problems happen when calling texi2dvi and I fail to
> parse the error messages. That would be great if someone could help me
> figure out what/where the problem is.
>
> partial sol'n:
>
> in automake-micro/silent-texi.sh
>
> cat > foo.texi <<'EOF'
> \input texinfo
> @setfilename foo.info
> @settitle foo manual
> @bye
> EOF
>
> This doesn't actually produce foo.dvi
> But add some text, then it does produce foo.dvi:
>
> cat > foo.texi <<'EOF'
> \input texinfo
> @setfilename foo.info
> @settitle foo manual
> Here is some random text.
> @bye
> EOF
>
> likewise, further down:
> cat > sub/zardoz.texi <<'EOF'
> \input texinfo
> @setfilename zardoz.info
> @settitle zardoz manual
> Sean Connery
> @bye
> EOF
Great! The "silent-texi.sh" test pass with that fix.
AIUI the fact the text can't be empty is a regression in "texinfo.tex".
Here is a patch for Texinfo, which adds an expected fail test for that
behavior.
Index: Makefile.am
===================================================================
--- Makefile.am (revision 7676)
+++ Makefile.am (working copy)
@@ -64,4 +64,8 @@
DISTCLEANFILES = txixml2texi
-TESTS=tests/texi2dvi_helpversion.sh
+TESTS= \
+ tests/texi2dvi_helpversion.sh \
+ tests/texi2dvi_empty_text.sh
+
+XFAIL_TESTS = tests/texi2dvi_empty_text.sh
Index: tests/texi2dvi_empty_text.sh
===================================================================
--- tests/texi2dvi_empty_text.sh (nonexistent)
+++ tests/texi2dvi_empty_text.sh (working copy)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Ensure that texi2dvi handles a file without text.
+
+set -x
+
+filename="foo-$$"
+texi2dvi=$srcdir/texi2dvi
+
+trap "rm -f $filename.texi $filename.dvi $filename.log" EXIT
+
+cat > "$filename.texi" <<'EOF'
+\input texinfo
address@hidden foo.info
address@hidden foo manual
address@hidden
+EOF
+
+$texi2dvi -o "$filename.dvi" "$filename.texi"
+if test $? -ne 0; then
+ cat "$filename.log"
+ exit 1
+fi
+
+:
>
> Still looking at other error
Thank you very much for your help!
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
Re: Help requested for Automake., Eli Zaretskii, 2017/03/04