diff mbox series

[RFC,04/12] test: doc: add test for docbook5

Message ID 20230413115745.116063-5-felipe.contreras@gmail.com (mailing list archive)
State New, archived
Headers show
Series doc: add tests and reimplement xmlto | expand

Commit Message

Felipe Contreras April 13, 2023, 11:57 a.m. UTC
It was released 13 years ago and we still don't support it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 t/t0600-doc-tools.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/t/t0600-doc-tools.sh b/t/t0600-doc-tools.sh
index a80cd32cd6..e4388a54c6 100755
--- a/t/t0600-doc-tools.sh
+++ b/t/t0600-doc-tools.sh
@@ -61,7 +61,8 @@  xmltoman() {
 }
 
 build_asciidoc_py() {
-	asciidoc -f "$doc_dir/asciidoc.conf" -amanmanual='Git Manual' -amansource='Git 1.0.0' -arevdate='2005-01-01' -b docbook -d manpage \
+	backend=${2-docbook}
+	asciidoc -f "$doc_dir/asciidoc.conf" -amanmanual='Git Manual' -amansource='Git 1.0.0' -arevdate='2005-01-01' -b "$backend" -d manpage \
 		-o "$1.xml" "$1.txt" &&
 	xmltoman "$1"
 }
@@ -83,6 +84,11 @@  test_expect_success ASCIIDOC 'legacy asciidoc.py' '
 	check_manpage "git-foo"
 '
 
+test_expect_failure ASCIIDOC 'legacy asciidoc.py (docbook5)' '
+	build_asciidoc_py "git-foo" docbook5 &&
+	check_manpage "git-foo"
+'
+
 test_expect_success ASCIIDOCTOR 'modern asciidoctor (docbook5)' '
 	build_asciidoctor "git-foo" &&
 	check_manpage "git-foo"