-
Notifications
You must be signed in to change notification settings - Fork 17
/
pprove
executable file
·53 lines (38 loc) · 978 Bytes
/
pprove
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/pro/bin/perl
use strict;
use warnings;
use Unix::Processors;
{ my $prove = App::Prove::Rules->new;
@ARGV or @ARGV = ("-j", 1 + Unix::Processors->new->max_online);
$prove->process_args (@ARGV);
$prove->test_rules ({
seq => [
{ seq => [ glob "t/0*" ] },
{ seq => [ glob "t/1*" ] },
{ par => [
{ seq => [ glob "t/2*" ] },
{ seq => [ glob "t/3*" ] },
{ seq => [ glob "t/4*" ] },
{ seq => [ glob "t/5*" ] },
{ seq => [ glob "t/6*" ] },
] },
] });
exit ($prove->run ? 0 : 1);
}
package App::Prove::Rules;
use strict;
use warnings;
use App::Prove 3.13;
use base "App::Prove";
sub test_rules {
my $self = shift;
@_ and $self->{test_rules} = shift;
return $self->{test_rules};
} # test_rules
sub _get_args {
my $self = shift;
my ($args, $class) = $self->SUPER::_get_args (@_);
$self->test_rules and $args->{rules} = $self->{test_rules};
return ($args, $class);
} # _get_args
1;