2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 6;
10 use lib qw( lib t/configure/testlib );
11 use_ok('config::auto::ops');
12 use Parrot::Configure::Options qw( process_options );
13 use Parrot::Configure::Step::Test;
14 use Parrot::Configure::Test qw(
15 test_step_constructor_and_description
18 ########## ops ##########
20 my ($args, $step_list_ref) = process_options(
22 argv => [ q{--ops=alpha} ],
27 my $conf = Parrot::Configure::Step::Test->new;
28 $conf->include_config_results( $args );
30 my $pkg = q{auto::ops};
32 $conf->add_steps($pkg);
33 $conf->options->set( %{$args} );
34 my $step = test_step_constructor_and_description($conf);
36 $conf->options->set('ops' => 'alpha');
38 open STDOUT, '>', "/dev/null" or croak "Unable to open to myout";
39 my $ret = $step->runstep($conf);
40 close STDOUT or croak "Unable to close after myout";
41 ok( $ret, "runstep() returned true value" );
44 pass("Completed all tests in $0");
46 ################### DOCUMENTATION ###################
50 auto/ops-01.t - test auto::ops
54 % prove t/steps/auto/ops-01.t
58 The files in this directory test functionality used by F<Configure.pl>.
60 The tests in this file test auto::ops.
68 config::auto::ops, F<Configure.pl>.
74 # cperl-indent-level: 4
77 # vim: expandtab shiftwidth=4: