Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1e007a96761035f261351a68e7601417 > files > 708

parrot-docs-3.6.0-2.fc15.noarch.rpm

#!/usr/bin/perl
# Copyright (C) 2001-2007, Parrot Foundation.

use strict;
use warnings;
use Data::Dumper;

use FindBin;
BEGIN { use lib qw{ ../../../lib }; }

use Test::More tests => 1;
use Parrot::Test;

# execute test.bef
my $language_dir = $FindBin::Bin . '/..';
my $parrot       = "../../../parrot";

# flatten filenames (don't use directories)
my $out_f = 'test.out';

# STDERR is written into same output file
my $exit_code = Parrot::Test::run_command(
    "$parrot befunge.pbc test.bef",
    CD     => $language_dir,
    STDOUT => $out_f,
    STDERR => $out_f
);

is( Parrot::Test::slurp_file($out_f), << 'OUT', 'output from test.bef' );
If you can see a 4 here ->4 <- then everything is ok!
OUT

# clean up
unlink($out_f);

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