2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 8;
9 use lib qw( lib t/configure/testlib );
10 use_ok('config::auto::gc');
11 use Parrot::Configure::Options qw( process_options );
12 use Parrot::Configure::Step::Test;
13 use Parrot::Configure::Test qw(
14 test_step_constructor_and_description
16 use IO::CaptureOutput qw| capture |;
18 ########### --verbose ###########
20 my ($args, $step_list_ref) = process_options(
22 argv => [ q{--verbose} ],
27 my $conf = Parrot::Configure::Step::Test->new;
28 $conf->include_config_results( $args );
30 my $pkg = q{auto::gc};
32 $conf->add_steps($pkg);
34 my $serialized = $conf->pcfreeze();
36 $conf->options->set( %{$args} );
37 my $step = test_step_constructor_and_description($conf);
41 sub { $ret = $step->runstep($conf); },
44 ok( $ret, "runstep() returned true value" );
45 like( $stdout, qr/\(gc\)/, "Got expected verbose output");
46 is($conf->data->get('gc_flag'), q{},
47 "Got expected value for 'gc_flag'");
50 pass("Completed all tests in $0");
52 ################### DOCUMENTATION ###################
56 auto_gc-01.t - test auto::gc
60 % prove t/steps/auto/gc-01.t
64 The files in this directory test functionality used by F<Configure.pl>.
66 The tests in this file test auto::gc.
74 config::auto::gc, F<Configure.pl>.
80 # cperl-indent-level: 4
83 # vim: expandtab shiftwidth=4: