2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 10;
10 use lib qw( lib t/configure/testlib );
11 use_ok('config::auto::pod2man');
12 use Parrot::BuildUtil;
13 use Parrot::Configure::Options qw( process_options );
14 use Parrot::Configure::Step::Test;
15 use Parrot::Configure::Test qw(
16 test_step_constructor_and_description
19 ########## regular ##########
21 my ($args, $step_list_ref) = process_options( {
26 my $conf = Parrot::Configure::Step::Test->new;
27 $conf->include_config_results( $args );
29 my $pkg = q{auto::pod2man};
31 $conf->add_steps($pkg);
33 my $serialized = $conf->pcfreeze();
35 $conf->options->set(%{$args});
36 my $step = test_step_constructor_and_description($conf);
37 ok($step->runstep($conf), "runstep() completed successfully");
38 ok(defined($step->result), "Result was defined");
39 my $has = $conf->data->get('has_pod2man');
40 ok( ( ($has == 1) or ($has == 0) ),
41 "Got an acceptable value for 'has_pod2man'");
43 $conf->replenish($serialized);
45 ########## _initial_content_check() ##########
48 my $rv = $step->_initial_content_check($conf, $content);
49 ok(! defined $rv, "Got expected return value when content was undefined");
51 q{no}, "Got expected result when content was undefined");
53 pass("Completed all tests in $0");
55 ################### DOCUMENTATION ###################
59 auto_pod2man-01.t - test auto::pod2man
63 % prove t/steps/auto_pod2man-01.t
67 The files in this directory test functionality used by F<Configure.pl>.
69 The tests in this file test auto::pod2man.
73 config::auto::pod2man, F<Configure.pl>.
79 # cperl-indent-level: 4
82 # vim: expandtab shiftwidth=4: