Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
standardize ulimit for rakudo
  • Loading branch information
coke committed Apr 18, 2014
1 parent dc53d16 commit 5b1b6a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion bin/rakudo.jvm.sh
Expand Up @@ -19,6 +19,8 @@ export PERL6LIB=`pwd`/lib:.
export LANG=en_US.UTF-8

# swap out the default runner with one that is ulimited
# temporarily ignore memory ulimit. ## ulimit -v 2048576
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 90; ulimit -v 1260720; ulimit -c 0; nice -20 ./perl6-j @ARGV"' >> perl6
chmod a+x ./perl6

perl t/spec/test_summary rakudo.jvm 2>&1 | tee ../log/rakudo.jvm_summary.out
10 changes: 5 additions & 5 deletions bin/rakudo.moar.sh
Expand Up @@ -12,16 +12,16 @@ cd rakudo.moar
perl Configure.pl --backends=moar --gen-moar --gen-nqp
make all

# default build generates a "perl6-m" - need "./perl6" for test_summary
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 180; ulimit -v 1260720; ulimit -c 0; nice -20 ./perl6-m @ARGV"' >> perl6
chmod a+x ./perl6

# 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
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 90; ulimit -v 1260720; ulimit -c 0; nice -20 ./perl6-m @ARGV"' >> perl6
chmod a+x ./perl6

perl t/spec/test_summary rakudo.moar 2>&1 | tee ../log/rakudo.moar_summary.out
5 changes: 5 additions & 0 deletions bin/rakudo.parrot.sh
Expand Up @@ -19,4 +19,9 @@ 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
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 90; ulimit -v 1260720; ulimit -c 0; nice -20 ./perl6-p @ARGV"' >> perl6
chmod a+x ./perl6

perl t/spec/test_summary rakudo.parrot 2>&1 | tee ../log/rakudo.parrot_summary.out

0 comments on commit 5b1b6a5

Please sign in to comment.