4 if ( $ENV{PERL_CORE} ) {
15 use App::Prove::State;
16 use App::Prove::State::Result;
19 my $pfx = $ENV{PERL_CORE} ? '../ext/Test/Harness/' : '';
20 return map {"$pfx$_"} @_;
29 't/compat/inc_taint.t',
35 { options => 'failed',
38 't/compat/inc_taint.t',
42 { options => 'passed',
56 't/compat/inc_taint.t',
77 { options => 'adrian',
84 't/compat/inc_taint.t',
88 { options => 'failed,passed',
91 't/compat/inc_taint.t',
99 { options => [ 'failed', 'passed' ],
100 get_tests_args => [],
102 't/compat/inc_taint.t',
103 't/compat/version.t',
105 't/compat/failure.t',
107 't/yamlish-writer.t',
111 get_tests_args => [],
113 't/yamlish-writer.t',
115 't/compat/inc_taint.t',
116 't/compat/version.t',
117 't/compat/failure.t',
122 get_tests_args => [],
125 't/compat/failure.t',
126 't/compat/version.t',
127 't/compat/inc_taint.t',
129 't/yamlish-writer.t',
133 get_tests_args => [],
136 't/compat/inc_taint.t',
137 't/compat/version.t',
138 't/yamlish-writer.t',
139 't/compat/failure.t',
144 get_tests_args => [],
147 't/compat/failure.t',
148 't/yamlish-writer.t',
149 't/compat/version.t',
150 't/compat/inc_taint.t',
154 { options => 'fresh',
155 get_tests_args => [],
158 't/compat/failure.t',
163 plan tests => @schedule * 2;
165 for my $test (@schedule) {
166 my $state = App::Prove::State->new;
167 isa_ok $state, 'App::Prove::State';
169 my $desc = $test->{options};
172 $state->{_} = get_state();
173 my $options = $test->{options};
174 $options = [$options] unless 'ARRAY' eq ref $options;
175 $state->apply_switch(@$options);
177 my @got = $state->get_tests( @{ $test->{get_tests_args} } );
178 my @expect = mn( @{ $test->{expect} } );
179 unless ( is_deeply \@got, \@expect, "$desc: order OK" ) {
181 diag( Dumper( { got => \@got, want => \@expect } ) );
186 return App::Prove::State::Result->new(
188 last_run_time => 1196285439,
190 mn('t/compat/failure.t') => {
192 last_run_time => 1196371471.57738,
193 last_pass_time => 1196371471.57738,
201 mn('t/yamlish-writer.t') => {
203 last_run_time => 1196371480.5761,
204 last_pass_time => 1196371480.5761,
205 last_fail_time => 1196368609,
213 mn('t/compat/env.t') => {
215 last_run_time => 1196371471.42967,
216 last_pass_time => 1196371471.42967,
217 last_fail_time => 1196368608,
225 mn('t/compat/version.t') => {
227 last_run_time => 1196371472.96476,
228 last_pass_time => 1196371472.96476,
229 last_fail_time => 1196368609,
237 mn('t/compat/inc_taint.t') => {
239 last_run_time => 1196371471.89682,
240 last_pass_time => 1196371471.89682,
248 mn('t/source.t') => {
250 last_run_time => 1196371479.72508,
251 last_pass_time => 1196371479.72508,