# $Id$

# Copyright (C) 2007, The Perl Foundation.

package Parrot::Test::Plumhead::Yacc;

# pragmata
use strict;
use warnings;

use base 'Parrot::Test::Plumhead';

sub get_out_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '_yacc.out', $count );
}

# Use PHP on the command line
sub get_test_prog {
    my $self = shift;
    my ( $count, $options ) = @_;

    my $lang_fn = Parrot::Test::per_test( '.php', $count );

    return "./parrot languages/plumhead/plumhead.pbc --variant=yacc languages/${lang_fn}";
}

# never skip the reference implementation
sub skip_why {
    my $self = shift;
    my ($options) = @_;

    return;
}

1;

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:

# $Id$

# Copyright (C) 2007, The Perl Foundation.

package Parrot::Test::Plumhead::Yacc;

# pragmata
use strict;
use warnings;

use base 'Parrot::Test::Plumhead';

# Generate output_is(), output_isnt() and output_like() in current package.
Parrot::Test::generate_languages_functions(); 

sub get_out_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '_yacc.out', $count );
}

# Use PHP on the command line
sub get_test_prog {
    my $self = shift;
    my ( $count, $options ) = @_;

    my $lang_fn = Parrot::Test::per_test( '.php', $count );

    return qq{./parrot languages/plumhead/plumhead.pbc --variant=yacc languages/${lang_fn}};
}

# never skip the reference implementation
sub skip_why {
    my $self = shift;
    my ($options) = @_;

    return;
}

1;

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:

Add missing Parrot::Test::generate_languages_functions(). All tests failing for 'make test-yacc' as variant 'yacc' is not implemented.
[Plumhead]
Add missing Parrot::Test::generate_languages_functions().
All tests failing for 'make test-yacc' as variant 'yacc'
is not implemented.


git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@22252 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
