fix codetest failure - ASSERT_ARGS does not have a ; after and
[parrot.git] / t / steps / inter / yacc-02.t
blob378cab9a4cd76c664a1d27e347010f03cd983f11
1 #! perl
2 # Copyright (C) 2007, Parrot Foundation.
3 # $Id$
4 # inter/yacc-02.t
6 use strict;
7 use warnings;
8 use Test::More tests =>   7;
9 use Carp;
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(
22     {
23         argv => [ q{--ask}, q{--maintainer} ],
24         mode => q{configure},
25     }
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 ###################
47 =head1 NAME
49 inter/yacc-02.t - test inter::yacc
51 =head1 SYNOPSIS
53     % prove t/steps/inter/yacc-02.t
55 =head1 DESCRIPTION
57 The files in this directory test functionality used by F<Configure.pl>.
59 The tests in this file test inter::yacc.
61 =head1 AUTHOR
63 James E Keenan
65 =head1 SEE ALSO
67 config::inter::yacc, F<Configure.pl>.
69 =cut
71 # Local Variables:
72 #   mode: cperl
73 #   cperl-indent-level: 4
74 #   fill-column: 100
75 # End:
76 # vim: expandtab shiftwidth=4: