2 # Copyright (C) 2007, Parrot Foundation.
4 # 038-run_single_step.t
9 use Test::More tests => 4;
12 use Parrot::Configure;
13 use Parrot::Configure::Options qw( process_options );
15 my ($args, $step_list_ref) = process_options(
21 ok( defined $args, "process_options returned successfully" );
24 my $conf = Parrot::Configure->new;
25 ok( defined $conf, "Parrot::Configure->new() returned okay" );
27 my $step = q{phony::step};
28 $conf->add_step($step);
29 $conf->options->set( %{$args} );
31 eval { $conf->run_single_step($step); };
32 like( $@, qr/Can't locate phony\/step\.pm in \@INC/, "Got expected error message" );
34 pass("Completed all tests in $0");
36 ################### DOCUMENTATION ###################
40 038-run_single_step.t - test C<run_single_step()> during configuration
44 % prove t/configure/038-run_single_step.t
48 The files in this directory test functionality used by F<Configure.pl>.
50 The tests in this file examine what would happen if
51 C<Parrot::Configure::run_single_step()> were run during configuration.
52 This is not its typical or recommended use. It is more typically called
53 post-configuration by F<tools/dev/reconfigure.pl>.
61 Parrot::Configure, F<Configure.pl>.
67 # cperl-indent-level: 4
70 # vim: expandtab shiftwidth=4: