diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-07-21 15:12:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-07-21 15:12:08 +0000 |
commit | f1d2ecfbf43972861b219a0b37804b965e20442d (patch) | |
tree | e62bca1c16fc64e9060518b5c1f41bde7f5cf7e8 /regress/usr.bin/mandoc | |
parent | 32ac51e97c91b65982e7854db577bec5f4d8af86 (diff) |
adjust test framework to not require a tty
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r-- | regress/usr.bin/mandoc/Makefile.inc | 8 | ||||
-rwxr-xr-x | regress/usr.bin/mandoc/copyless | 14 |
2 files changed, 4 insertions, 18 deletions
diff --git a/regress/usr.bin/mandoc/Makefile.inc b/regress/usr.bin/mandoc/Makefile.inc index f80ba133847..326c548b4f4 100644 --- a/regress/usr.bin/mandoc/Makefile.inc +++ b/regress/usr.bin/mandoc/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.27 2020/03/13 00:31:05 schwarze Exp $ +# $OpenBSD: Makefile.inc,v 1.28 2020/07/21 15:12:07 schwarze Exp $ .include "Makefile.sub" @@ -83,9 +83,9 @@ htmlval: ${_HTMLVALS} @${DIFF} ${.CURDIR}/${.IMPSRC:S/mandoc_ascii$/out_ascii/} ${.IMPSRC} .in.mandoc_tag: - @MANPAGER="${BSDSRCDIR}/regress/usr.bin/mandoc/copyless \ - ${.TARGET:S/.mandoc_tag$//}" \ - ${MAN} -l ${MOPTS} -Tascii -Ios=OpenBSD ${.IMPSRC} + @${MAN} -l ${MOPTS} -Ios=OpenBSD -Tascii \ + -O outfilename=${.TARGET:S/tag$/ascii/},tagfilename=${.TARGET} \ + ${.IMPSRC} .mandoc_tag.diff_tag: @${DIFF} ${.CURDIR}/${.IMPSRC:S/mandoc_tag$/out_tag/} ${.IMPSRC} diff --git a/regress/usr.bin/mandoc/copyless b/regress/usr.bin/mandoc/copyless deleted file mode 100755 index a00c0009b26..00000000000 --- a/regress/usr.bin/mandoc/copyless +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -set -e -umask 022 -if [ "$#" -ne 4 ]; then - echo "$0 $*: $# args instead of 4" 1>&2 - exit 1 -fi -if [ "$2" != "-T" ]; then - echo "$0 $*: second arg is not -T" 1>&2 - exit 1 -fi -cut -d ' ' -f 1,3 "$3" > "$1.mandoc_tag" -cp "$4" "$1.mandoc_ascii" -exit 0 |