source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: adjust test framework to not require a tty
@ 2020-07-21 15:14 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2020-07-21 15:14 UTC (permalink / raw)
  To: source

Log Message:
-----------
adjust test framework to not require a tty

Modified Files:
--------------
    mandoc/regress:
        regress.pl

Removed Files:
-------------
    mandoc/regress:
        copyless

Revision Data
-------------
Index: regress.pl
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/regress.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -Lregress/regress.pl -Lregress/regress.pl -u -p -r1.14 -r1.15
--- regress/regress.pl
+++ regress/regress.pl
@@ -267,12 +267,13 @@ for my $test (@regress_tests) {
 	    $test->{NAME} =~ /^$onlytest/) {
 		$count_tag++;
 		$count_total++;
-		local $ENV{MANPAGER} = "./copyless $test->{NAME}";
 		my @cmd = (qw(../man -l), @{$test->{MOPTS}},
-		    qw(-I os=OpenBSD -T ascii), $i);
+		    qw(-I os=OpenBSD -T ascii -O),
+		    "outfilename=$o,tagfilename=$to", "$i");
 		print "@cmd\n" if $targets{verbose};
 		system @cmd
 		    and fail $test->{NAME}, 'tag:man';
+		system qw(sed -i), 's/ .*\// /', $to;
 		system @diff, $tw, $to
 		    and fail $test->{NAME}, 'tag:diff';
 		print "." unless $targets{verbose};
--- regress/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
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-21 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 15:14 mandoc: adjust test framework to not require a tty schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).