Skip to content

Commit

Permalink
[install] add language Forth
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@43310 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
fperrad committed Dec 29, 2009
1 parent 0789210 commit cde03db
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tools/install/smoke_languages.pl
Expand Up @@ -10,7 +10,7 @@
use Getopt::Long;
use File::Spec::Functions;

use Test::More tests => 32;
use Test::More tests => 33;

=head1 NAME
Expand Down Expand Up @@ -237,6 +237,22 @@ sub quote {
unlink($filename);
}

SKIP:
{
$exe = quote(catfile($pwd, $bindir, 'parrot-forth'));
skip("fun", 1) unless (-d "$pwd/$langdir/forth" || -e $exe);
chdir("$pwd/$langdir/forth");
$filename = 'test.frt';
open $FH, '>', $filename
or die "Can't open $filename ($!).\n";
print $FH ".\" Hello World!\" CR";
close $FH;
$exe = "$parrot forth.pbc" unless (-e $exe);
$out = `$exe $filename`;
ok($out eq "Hello World!\n", "check forth");
unlink($filename);
}

SKIP:
{
$exe = quote(catfile($pwd, $bindir, 'parrot-gil'));
Expand Down

0 comments on commit cde03db

Please sign in to comment.