Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a runner for rakudo.jvm
  • Loading branch information
coke committed Jun 21, 2013
1 parent 523b184 commit 4ad35b0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
niecza
rakudo
rakudo.jvm
Pugs.hs
roast
31 changes: 31 additions & 0 deletions bin/rakudo.jvm.sh
@@ -0,0 +1,31 @@
#!/bin/sh

# default to sysperl
PATH=/usr/local/bin:$PATH

rm -rf rakudo.jvm
git clone git://github.com/rakudo/rakudo.git rakudo.jvm
cd rakudo.jvm
ln -s ../../roast t/spec
git clone git://github.com/perl6/nqp.git
cd nqp
perl ConfigureJVM.pl --prefix=../install-jvm
make install
cd ..
perl ConfigureJVM.pl
make all

# uninstalled rakudo doesn't know how to find Test.pm
# ... or any other modules
export PERL6LIB=`pwd`/lib:.

# some tests require a LANG.
export LANG=en_US.UTF-8

# swap out the default runner with one that is ulimited
mv perl6 p6
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 300; ulimit -v 2048576; ./p6 @ARGV";' >> perl6
chmod u+x perl6 p6

perl t/spec/test_summary rakudo.jvm 2>&1 | tee ../rakudo.jvm_summary.out

0 comments on commit 4ad35b0

Please sign in to comment.