#! perl # Copyright (C) 2007, The Perl Foundation. # $Id$ # 039-run_single_step.t use strict; use warnings; use Test::More tests => 5; use Carp; use lib qw( lib t/configure/testlib ); use Parrot::Configure; use Parrot::Configure::Options qw( process_options ); $| = 1; is($|, 1, "output autoflush is set"); my $args = process_options( { argv => [], mode => q{configure}, } ); ok( defined $args, "process_options returned successfully" ); my %args = %$args; my $conf = Parrot::Configure->new; ok( defined $conf, "Parrot::Configure->new() returned okay" ); my $step = q{init::zeta}; $conf->add_step($step); $conf->options->set( %{$args} ); eval { $conf->run_single_step('init::omega'); }; like( $@, qr/Mangled task in run_single_step/, "Got expected error message" ); pass("Completed all tests in $0"); ################### DOCUMENTATION ################### =head1 NAME 039-run_single_step.t - test C during configuration =head1 SYNOPSIS % prove t/configure/039-run_single_step.t =head1 DESCRIPTION The files in this directory test functionality used by F. The tests in this file examine what would happen if C were run during configuration. This is not its typical or recommended use. It is more typically called post-configuration by F. =head1 AUTHOR James E Keenan =head1 SEE ALSO Parrot::Configure, F. =cut # Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 100 # End: # vim: expandtab shiftwidth=4: