[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Tue, 16 Apr 2024 18:51:57 -0400 (EDT) |
branch: master
commit 02d32938d946272e911622ae29640590c763b075
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Apr 16 23:46:13 2024 +0200
Add Pod-Simple-Texinfo manual test.
---
Pod-Simple-Texinfo/manual_tests/empty_head2.pod | 8 ++++++++
.../manual_tests/reference_test_empty_head2.texi | 21 +++++++++++++++++++++
Pod-Simple-Texinfo/manual_tests/test_empty_head2.sh | 9 +++++++++
.../manual_tests/test_ref_to_unknown.sh | 4 ++--
4 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/Pod-Simple-Texinfo/manual_tests/empty_head2.pod
b/Pod-Simple-Texinfo/manual_tests/empty_head2.pod
new file mode 100644
index 0000000000..802f025bfb
--- /dev/null
+++ b/Pod-Simple-Texinfo/manual_tests/empty_head2.pod
@@ -0,0 +1,8 @@
+=head1 empty head2
+
+=head2
+
+=head2
+
+=head2 B<Z<>>
+
diff --git a/Pod-Simple-Texinfo/manual_tests/reference_test_empty_head2.texi
b/Pod-Simple-Texinfo/manual_tests/reference_test_empty_head2.texi
new file mode 100644
index 0000000000..1eddc0efa6
--- /dev/null
+++ b/Pod-Simple-Texinfo/manual_tests/reference_test_empty_head2.texi
@@ -0,0 +1,21 @@
+\input texinfo
+@setfilename empty_head2.info
+
+@settitle empty head2
+
+@node Top
+@top empty head2
+
+@node empty head2
+@chapter empty head2
+
+@node 1
+@section
+
+@node 2
+@section
+
+@node @strong{}
+@section @strong{}
+
+@bye
diff --git a/Pod-Simple-Texinfo/manual_tests/test_empty_head2.sh
b/Pod-Simple-Texinfo/manual_tests/test_empty_head2.sh
new file mode 100755
index 0000000000..8f3b17c2a1
--- /dev/null
+++ b/Pod-Simple-Texinfo/manual_tests/test_empty_head2.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+# From the Pod-Simple-Texinfo, run
+# ./manual_tests/test_empty_head2.sh
+
+# The manual processed in the test has an empty head.
+# There are errors generated when parsing the manual to fix and add
+# menus, which can be seen with --debug=2.
+./pod2texi.pl manual_tests/empty_head2.pod | diff -u
manual_tests/reference_test_empty_head2.texi -
diff --git a/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
b/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
index 45ba220107..2b5f6e07e2 100755
--- a/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
+++ b/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
@@ -4,6 +4,6 @@
# ./manual_tests/test_ref_to_unknown.sh
# The manual processed in the test has a reference that is not resolved.
-# There is an error generated when parsing the manual to fix and add
-# menus, which is, normally, not visible.
+# There is an error generated when gathering internal references after
+# parsing the manual to fix and add menus, which can be seen with --debug=2.
./pod2texi.pl manual_tests/ref_to_unknown.pod | diff -u
manual_tests/reference_ref_to_unknown.texi -