source@mandoc.bsd.lv
 help / color / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc: adjust test framework to not require a tty
Date: Tue, 21 Jul 2020 10:14:50 -0500 (EST)
Message-ID: <490e052fa033efc9@mandoc.bsd.lv> (raw)

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


                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=490e052fa033efc9@mandoc.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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