2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 8;
10 use lib qw( lib t/configure/testlib );
11 use_ok('config::gen::config_pm');
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 ########## regular ##########
20 my ($args, $step_list_ref) = process_options(
27 my $conf = Parrot::Configure::Step::Test->new;
28 $conf->include_config_results( $args );
30 my $pkg = q{gen::config_pm};
31 $conf->add_steps($pkg);
32 $conf->options->set( %{$args} );
33 my $step = test_step_constructor_and_description($conf);
34 ok(-f $step->{templates}->{myconfig},
35 "Able to locate template for myconfig");
36 ok(-f $step->{templates}->{Config_pm},
37 "Able to locate template for Config_pm");
38 ok(-f $step->{templates}->{config_lib},
39 "Able to locate template for config_lib");
41 pass("Completed all tests in $0");
43 ################### DOCUMENTATION ###################
47 gen/config_pm-01.t - test gen::config_pm
51 % prove t/steps/gen/config_pm-01.t
55 The files in this directory test functionality used by F<Configure.pl>.
57 The tests in this file test gen::config_pm.
65 config::gen::config_pm, F<Configure.pl>.
71 # cperl-indent-level: 4
74 # vim: expandtab shiftwidth=4: