2 # Copyright (C) 2007, The Perl Foundation.
8 use Test::More tests => 10;
10 use lib qw( lib t/configure/testlib );
11 use_ok('config::init::defaults');
12 use_ok('config::gen::config_pm');
13 use Parrot::Configure;
14 use Parrot::Configure::Options qw( process_options );
15 use Parrot::Configure::Test qw( test_step_thru_runstep);
17 my $args = process_options( {
22 my $conf = Parrot::Configure->new();
24 test_step_thru_runstep($conf, q{init::defaults}, $args);
26 my ($task, $step_name, $step, $ret);
27 my $pkg = q{gen::config_pm};
29 $conf->add_steps($pkg);
30 $conf->options->set(%{$args});
31 $task = $conf->steps->[-1];
32 $step_name = $task->step;
34 $step = $step_name->new();
35 ok(defined $step, "$step_name constructor returned defined value");
36 isa_ok($step, $step_name);
37 ok($step->description(), "$step_name has description");
39 # Test of runstep() not yet ready for prime time.
40 # ok($step->runstep($conf), "runstep() returned true value");
43 pass("Completed all tests in $0");
45 ################### DOCUMENTATION ###################
49 gen_config_pm-01.t - test config::gen::config_pm
53 % prove t/steps/gen_config_pm-01.t
57 The files in this directory test functionality used by F<Configure.pl>.
59 The tests in this file test subroutines exported by config::gen::config_pm.
67 config::gen::config_pm, F<Configure.pl>.
73 # cperl-indent-level: 4
76 # vim: expandtab shiftwidth=4: