Upgrade to Test::Harness 3.14
[p5sagit/p5-mst-13.2.git] / ext / Test / Harness / t / proverc.t
CommitLineData
b965d173 1#!/usr/bin/perl -w
2
3BEGIN {
5e2a19fc 4 if ( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = ( '../lib', 'lib' );
7 }
8 else {
9 unshift @INC, 't/lib';
b965d173 10 }
11}
12
13use strict;
14use lib 't/lib';
15use Test::More tests => 1;
16use File::Spec;
17use App::Prove;
18
19my $prove = App::Prove->new;
20
5e2a19fc 21$prove->add_rc_file(
22 File::Spec->catfile(
27fc0087 23 ( $ENV{PERL_CORE}
24 ? ( File::Spec->updir(), 'ext', 'Test', 'Harness' )
25 : ()
26 ),
27 't', 'data',
28 'proverc'
5e2a19fc 29 )
30);
b965d173 31
32is_deeply $prove->{rc_opts},
33 [ '--should', 'be', '--split', 'correctly', 'Can', 'quote things',
5e2a19fc 34 'using single or', 'double quotes', '--this', 'is', 'OK?'
35 ],
b965d173 36 'options parsed';
37