2 # Copyright (C) 2007, Parrot Foundation.
4 # 039-run_single_step.t
9 use Test::More tests => 5;
11 use lib qw( lib t/configure/testlib );
12 use Parrot::Configure;
13 use Parrot::Configure::Options qw( process_options );
16 is($|, 1, "output autoflush is set");
18 my ($args, $step_list_ref) = process_options(
24 ok( defined $args, "process_options returned successfully" );
27 my $conf = Parrot::Configure->new;
28 ok( defined $conf, "Parrot::Configure->new() returned okay" );
30 my $step = q{init::zeta};
31 $conf->add_step($step);
32 $conf->options->set( %{$args} );
35 $conf->run_single_step('init::omega');
38 qr/Mangled task in run_single_step/,
39 "Got expected error message"
42 pass("Completed all tests in $0");
44 ################### DOCUMENTATION ###################
48 039-run_single_step.t - test C<run_single_step()> during configuration
52 % prove t/configure/039-run_single_step.t
56 The files in this directory test functionality used by F<Configure.pl>.
58 The tests in this file examine what would happen if
59 C<Parrot::Configure::run_single_step()> were run during configuration.
60 This is not its typical or recommended use. It is more typically called
61 post-configuration by F<tools/dev/reconfigure.pl>.
69 Parrot::Configure, F<Configure.pl>.
75 # cperl-indent-level: 4
78 # vim: expandtab shiftwidth=4: