1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 00:55:40 -04:00

Tester now uses the new sandboxing setup

This commit is contained in:
Ryan Voots 2017-05-06 05:05:07 -04:00
parent f1b4a20f5c
commit 18640a7134
2 changed files with 11 additions and 2 deletions

9
bin/test_eval.pl Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env perl
use strict;
use FindBin;
use lib $FindBin::Bin.'/../lib';
use EvalServer::Sandbox;
EvalServer::Sandbox::run_eval();
1;

View file

@ -9,7 +9,7 @@ echo $CODE
echo --------
rm -f ./jail/noseccomp
echo $CODE | sudo strace -ojail/killed.log /home/ryan/perl5/perlbrew/perls/perlbot-inuse/bin/perl5* ./lib/eval.pl
echo $CODE | sudo strace -ojail/killed.log /home/ryan/perl5/perlbrew/perls/perlbot-inuse/bin/perl5* ./bin/test_eval.pl
touch ./jail/noseccomp
echo $CODE | sudo strace -ojail/alive.log /home/ryan/perl5/perlbrew/perls/perlbot-inuse/bin/perl5* ./lib/eval.pl
echo $CODE | sudo strace -ojail/alive.log /home/ryan/perl5/perlbrew/perls/perlbot-inuse/bin/perl5* ./bin/test_eval.pl
rm -f ./jail/noseccomp