aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/regress.pl
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-07-21 15:14:20 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-07-21 15:14:20 +0000
commit8b3037513767fcf88bab98f1be164c72f4eedc63 (patch)
tree2056e643ab46b6ff1a2119182ba2a50d2eede2a4 /regress/regress.pl
parent34c3fd437f1b1a9f91c688bf395a99c631b642ed (diff)
downloadmandoc-8b3037513767fcf88bab98f1be164c72f4eedc63.tar.gz
mandoc-8b3037513767fcf88bab98f1be164c72f4eedc63.tar.zst
mandoc-8b3037513767fcf88bab98f1be164c72f4eedc63.zip
adjust test framework to not require a tty
Diffstat (limited to 'regress/regress.pl')
-rwxr-xr-xregress/regress.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/regress.pl b/regress/regress.pl
index 3c6e64df..fc320c07 100755
--- a/regress/regress.pl
+++ b/regress/regress.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# $Id: regress.pl,v 1.14 2020/03/13 15:32:31 schwarze Exp $
+# $Id: regress.pl,v 1.15 2020/07/21 15:14:20 schwarze Exp $
#
# Copyright (c) 2017, 2018, 2019, 2020 Ingo Schwarze <schwarze@openbsd.org>
#
@@ -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};