From 8e40b44c6db6c03b04a74d6783224b3a701e5a86 Mon Sep 17 00:00:00 2001 From: grubert Date: Mon, 25 Mar 2024 22:01:42 +0000 Subject: [PATCH] add nroff -man test git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9593 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- sandbox/manpage-writer/expected/URUE-problem.nroff | 66 ++++++++++++++++++++++ sandbox/manpage-writer/runtest-man | 8 ++- 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 sandbox/manpage-writer/expected/URUE-problem.nroff diff --git a/sandbox/manpage-writer/expected/URUE-problem.nroff b/sandbox/manpage-writer/expected/URUE-problem.nroff new file mode 100644 index 000000000..560451adf --- /dev/null +++ b/sandbox/manpage-writer/expected/URUE-problem.nroff @@ -0,0 +1,66 @@ +go to the ]8;;http://www.python.org\python home page]8;;\ to read + +or read ]8;;http://www.python.org\http://www.python.org]8;;\ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/manpage-writer/runtest-man b/sandbox/manpage-writer/runtest-man index 7ce00563d..be20beded 100755 --- a/sandbox/manpage-writer/runtest-man +++ b/sandbox/manpage-writer/runtest-man @@ -17,7 +17,7 @@ if [ -z "`man -?|grep -- '^ *-T'`" ] ; then ENCS="" GROFF="ps" else - ENCS="latin1 utf8 ascii ps html" + ENCS="latin1 utf8 ascii ps html nroff" GROFF="" fi @@ -51,7 +51,11 @@ for CMD in man mandoc ; do for ENC in $ENCS ; do if [ -e $EXP_DIR/$F_BASE.$ENC ] ; then - $CMD -T$ENC $IN_F > $OUT_DIR/$F_BASE.$ENC + if [ "nroff" != $ENC ] ; then + $CMD -T$ENC $IN_F > $OUT_DIR/$F_BASE.$ENC + else + nroff -man $IN_F > $OUT_DIR/$F_BASE.$ENC + fi diff -s -u $EXP_DIR/$F_BASE.$ENC $OUT_DIR/$F_BASE.$ENC if [ $? -ne 0 ] ; then inc_ERROR_CNT -- 2.11.4.GIT