source@mandoc.bsd.lv
 help / color / 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, back to index

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

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git