Lines Matching +full:eq +full:- +full:level
2 # Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved.
45 switches => '-w',
60 # TAP::Harness->new(), they will be accessed directly, see the
86 $key =~ s/(\d+)-/01-/;
93 if ($arg eq 'list') {
95 (my $x = basename($_)) =~ s|^[0-9][0-9]-(.*)\.t$|$1|;
100 if ($arg eq 'alltests') {
104 } elsif ($arg =~ m/^(-?)(.*)/) {
109 # If '-foo' is the first arg, it's short for 'alltests -foo'
110 if ($sign eq '-' && $initial_arg) {
116 ($sign eq '-' ? "removal" : "addition"),
120 if ($sign eq '-') {
135 my @preps = glob(catfile($recipesdir,"00-prep_*.t"));
143 if ($glob =~ m|^[\d\[\]\?\-]+$|) {
144 return glob(catfile($recipesdir,"$glob-*.t"));
147 return glob(catfile($recipesdir,"*-$glob.t"));
164 use parent -norequire, 'TAP::Parser';
171 my @plans = (); # initial level, no plan yet
183 print $fh $self->as_string, "\n"
188 my $is_plan = $self->is_plan;
189 my $tests_planned = $is_plan && $self->tests_planned;
190 my $is_test = $self->is_test;
191 my $is_ok = $is_test && $self->is_ok;
193 # workaround for parser not coping with sub-test indentation
194 if ($self->is_unknown) {
195 my $level = $#plans;
196 my $indent = $level < 0 ? "" : " " x ($level * 4);
199 if ($self->as_string =~ m/^$indent 1\.\.(\d+)/);
201 if ($self->as_string =~ m/^$indent(not )?ok /);
208 pop @plans if @plans && --($plans[-1]) <= 0;
210 print "\n".$self->as_string
212 …print "\n# ------------------------------------------------------------------------------" if !$is…
214 } elsif ($self->as_string ne "") {
216 $output_buffer .= "\n".$self->as_string;
227 if (scalar $self->failed > 0 && @failure_output) {
244 return $class->SUPER::new({ %opts });
248 use parent -norequire, 'TAP::Harness';
275 my @args = map { ref($_) eq 'ARRAY' ? $_->[0] : $_ } @_;
278 if ($self->{switches}) {
279 push @switches, $self->{switches};
281 if ($self->{lib}) {
282 foreach (@{$self->{lib}}) {
288 $l =~ s|\\|\\\\|g if $^O eq "MSWin32";
289 push @switches, "-I$l";
308 my $harness = $package->new(\%tapargs);
310 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
313 if (ref($ret) ne "TAP::Parser::Aggregator" || !$ret->has_errors) {
315 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
319 # If this is a TAP::Parser::Aggregator, $ret->has_errors is the count of
322 if (ref($ret) eq "TAP::Parser::Aggregator") {
323 exit 0 unless $ret->has_errors;
324 exit 1 unless $^O eq 'VMS';
325 # On VMS, perl converts an exit 1 to SS$_ABORT (%SYSTEM-F-ABORT), which
337 # If this isn't a TAP::Parser::Aggregator, it's the pre-TAP test harness,