blob: e0f3c864a64ef7f819489d160425ac94289ca53d (
plain)
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
|
BEGIN {
if( $ENV{PERL_CORE} ) {
chdir 't';
@INC = ('../lib', 'lib');
}
else {
unshift @INC, 't/lib';
}
}
use strict;
use File::Spec;
use Test::More;
plan skip_all => "Not adapted to perl core" if $ENV{PERL_CORE};
plan skip_all => "Not installing prove" if -e "t/SKIP-PROVE";
plan tests => 1;
my $prove = File::Spec->catfile( File::Spec->curdir, "blib", "script", "prove" );
my $tests = File::Spec->catfile( 't', 'prove*.t' );
GLOBBAGE: {
my @actual = sort qx/$prove --dry $tests/;
chomp @actual;
my @expected = (
File::Spec->catfile( "t", "prove-globbing.t" ),
File::Spec->catfile( "t", "prove-switches.t" ),
);
is_deeply( \@actual, \@expected, "Expands the wildcards" );
}
|