2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 7;
10 use lib qw( lib t/configure/testlib );
11 $ENV{TEST_YACC} = 'foobar';
12 use_ok('config::inter::yacc');
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 ########## ask; maintainer; $ENV{TEST_YACC} ##########
21 my ($args, $step_list_ref) = process_options(
23 argv => [ q{--ask}, q{--maintainer} ],
28 my $conf = Parrot::Configure::Step::Test->new;
29 $conf->include_config_results( $args );
31 my $pkg = q{inter::yacc};
33 $conf->add_steps($pkg);
34 $conf->options->set( %{$args} );
35 my $step = test_step_constructor_and_description($conf);
36 my $ret = $step->runstep($conf);
37 is( $ret, undef, "runstep() returned undefined value" );
38 my $result_expected = q{no yacc program was found};
39 is( $step->result(), $result_expected, "Result was $result_expected" );
40 # re-set for next step
41 $step->set_result(q{});
43 pass("Completed all tests in $0");
45 ################### DOCUMENTATION ###################
49 inter/yacc-02.t - test inter::yacc
53 % prove t/steps/inter/yacc-02.t
57 The files in this directory test functionality used by F<Configure.pl>.
59 The tests in this file test inter::yacc.
67 config::inter::yacc, F<Configure.pl>.
73 # cperl-indent-level: 4
76 # vim: expandtab shiftwidth=4: