2 # Copyright (C) 2007, The Perl Foundation.
8 use Test::More tests => 16;
10 use lib qw( lib t/configure/testlib );
11 use_ok('config::init::defaults');
12 use_ok('config::inter::progs');
13 use_ok('config::auto::gcc');
14 use Parrot::Configure;
15 use Parrot::Configure::Options qw( process_options );
16 use Parrot::Configure::Test qw( test_step_thru_runstep);
18 my $args = process_options( {
23 my $conf = Parrot::Configure->new();
25 test_step_thru_runstep($conf, q{init::defaults}, $args);
26 test_step_thru_runstep( $conf, q{inter::progs}, $args );
28 my ($task, $step_name, $step, $ret);
29 my $pkg = q{auto::gcc};
31 $conf->add_steps($pkg);
32 $conf->options->set(%{$args});
33 $task = $conf->steps->[-1];
34 $step_name = $task->step;
36 $step = $step_name->new();
37 ok(defined $step, "$step_name constructor returned defined value");
38 isa_ok($step, $step_name);
39 ok($step->description(), "$step_name has description");
41 ok($step->runstep($conf), "runstep returned true value");
44 pass("Completed all tests in $0");
46 ################### DOCUMENTATION ###################
50 auto_gcc-01.t - test config::auto::gcc
54 % prove t/steps/auto_gcc-01.t
58 The files in this directory test functionality used by F<Configure.pl>.
60 The tests in this file test subroutines exported by config::auto::gcc.
68 config::auto::gcc, F<Configure.pl>.
74 # cperl-indent-level: 4
77 # vim: expandtab shiftwidth=4: