tagged release 0.6.4
[parrot.git] / t / steps / auto_gcc-01.t
blob4a0a4d803cf01469a605bd6b179095745f2529cf
1 #! perl
2 # Copyright (C) 2007, The Perl Foundation.
3 # $Id$
4 # auto_gcc-01.t
6 use strict;
7 use warnings;
8 use Test::More tests =>  16;
9 use Carp;
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( {
19     argv            => [],
20     mode            => q{configure},
21 } );
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 ###################
48 =head1 NAME
50 auto_gcc-01.t - test config::auto::gcc
52 =head1 SYNOPSIS
54     % prove t/steps/auto_gcc-01.t
56 =head1 DESCRIPTION
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.
62 =head1 AUTHOR
64 James E Keenan
66 =head1 SEE ALSO
68 config::auto::gcc, F<Configure.pl>.
70 =cut
72 # Local Variables:
73 #   mode: cperl
74 #   cperl-indent-level: 4
75 #   fill-column: 100
76 # End:
77 # vim: expandtab shiftwidth=4: