[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Tue, 16 Apr 2024 09:49:11 -0400 (EDT) |
branch: master
commit 610f194eea72cb1f750b5dd263ff4d62c831d9f7
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Apr 16 14:00:23 2024 +0200
Pod-Simple-Texinfo/manual_tests: add a new test
---
Pod-Simple-Texinfo/manual_tests/ref_to_unknown.pod | 3 +++
.../manual_tests/reference_ref_to_unknown.texi | 14 ++++++++++++++
Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh | 9 +++++++++
3 files changed, 26 insertions(+)
diff --git a/Pod-Simple-Texinfo/manual_tests/ref_to_unknown.pod
b/Pod-Simple-Texinfo/manual_tests/ref_to_unknown.pod
new file mode 100644
index 0000000000..2392e86604
--- /dev/null
+++ b/Pod-Simple-Texinfo/manual_tests/ref_to_unknown.pod
@@ -0,0 +1,3 @@
+=head1 Test ref
+
+L</unknown>
diff --git a/Pod-Simple-Texinfo/manual_tests/reference_ref_to_unknown.texi
b/Pod-Simple-Texinfo/manual_tests/reference_ref_to_unknown.texi
new file mode 100644
index 0000000000..97e82f95cb
--- /dev/null
+++ b/Pod-Simple-Texinfo/manual_tests/reference_ref_to_unknown.texi
@@ -0,0 +1,14 @@
+\input texinfo
+@setfilename Test_ref.info
+
+@settitle Test ref
+
+@node Top
+@top Test ref
+
+@node Test ref
+@chapter Test ref
+
+@ref{unknown}
+
+@bye
diff --git a/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
b/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
new file mode 100755
index 0000000000..45ba220107
--- /dev/null
+++ b/Pod-Simple-Texinfo/manual_tests/test_ref_to_unknown.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+# From the Pod-Simple-Texinfo, run
+# ./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.
+./pod2texi.pl manual_tests/ref_to_unknown.pod | diff -u
manual_tests/reference_ref_to_unknown.texi -