X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2F01-jobs.t;h=a7a1ffaa7e6014e160aef23b3c245032a9011a37;hb=3e58f1a188735de523a628d76126ea275112a305;hp=f44a1e893c631878f0578d865d5de3a2aa4de96f;hpb=ee638edb8ce97aeb5b6e76921cf63a0cc995f786;p=gruntmaster-daemon.git diff --git a/t/01-jobs.t b/t/01-jobs.t index f44a1e8..a7a1ffa 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -19,16 +19,28 @@ use YAML::Tiny qw/LoadFile/; ################################################## use constant COMPILER => { - qw/C gcc + qw/BRAINFUCK bfc + C gcc CPP g++ + D dmd + GOLFSCRIPT golfscript MONO gmcs JAVA javac + JULIA julia PASCAL fpc GOLANG go GCCGO gccgo HASKELL ghc PERL perl - PYTHON python/}; + PHP php + PYTHON python2.7 + RUBY ruby + RUST rustc + OBERON obc + OCAML ocaml + SBCL sbcl/}; + +my %needs_fork = map { $_ => 1 } qw/GOLANG GOLFSCRIPT GCCGO JAVA JULIA RUBY/; my $loglevel = $ENV{TEST_LOG_LEVEL} // ($ENV{TEST_VERBOSE} ? 'TRACE' : 'OFF'); my $log_conf = <{files}{prog}) { my $format = $meta->{files}{prog}{format}; my $compiler = COMPILER->{$format}; - skip "$compiler not found in path", 3 unless $ENV{GRUNTMASTER_VM} || which $compiler; - skip "$format requires multiple processes. Set GRUNTMASTER_KILL_USER and GRUNTMASTER_SUDO to allow multiple processes.", 3 if !$ENV{GRUNTMASTER_KILL_USER} && $format eq 'JAVA' || $format eq 'GOLANG' || $format eq 'GCCGO'; +# skip "$compiler not found in path", 3 unless $ENV{GRUNTMASTER_VM} || which $compiler; +# skip "$format requires multiple processes. Set GRUNTMASTER_KILL_USER and GRUNTMASTER_SUDO to allow multiple processes.", 3 if !$ENV{GRUNTMASTER_KILL_USER} && $needs_fork{$format}; $meta->{files}{prog}{content} = read_file "$source/$meta->{files}{prog}{name}"; } $meta = merge $meta, $pbmeta;