2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 7;
10 use lib qw( lib t/configure/testlib );
11 $ENV{TEST_LEX} = 'foobar';
12 use_ok('config::inter::lex');
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_LEX} ##########
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::lex};
33 $conf->add_steps($pkg);
34 $conf->options->set( %{$args} );
35 my $step = test_step_constructor_and_description($conf);
37 my $ret = $step->runstep($conf);
38 is( $ret, undef, "runstep() returned undefined value" );
39 my $result_expected = q{no lex program was found};
40 is( $step->result(), $result_expected, "Result was $result_expected" );
42 pass("Completed all tests in $0");
44 ################### DOCUMENTATION ###################
48 inter/lex-02.t - test inter::lex
52 % prove t/steps/inter/lex-02.t
56 The files in this directory test functionality used by F<Configure.pl>.
58 The tests in this file test inter::lex.
66 config::inter::lex, F<Configure.pl>.
72 # cperl-indent-level: 4
75 # vim: expandtab shiftwidth=4: