X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=t%2F01-jobs.t;h=d178f851744e666039c220f187bf04838b78ed20;hp=44fa9cc166a93b055d2ea7887a8484bba0127347;hb=27be856063e024220d36e42d2b55c319c3fee384;hpb=1ce303c36f4ffed6b5cef4c4b9a275384094831d diff --git a/t/01-jobs.t b/t/01-jobs.t index 44fa9cc..d178f85 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -21,6 +21,7 @@ use YAML::Tiny qw/LoadFile/; use constant COMPILER => { qw/C gcc CPP g++ + GOLFSCRIPT golfscript MONO gmcs JAVA javac PASCAL fpc @@ -30,8 +31,11 @@ use constant COMPILER => { PERL perl PYTHON python RUBY ruby + RUST rustc SBCL sbcl/}; +my %needs_fork = map { $_ => 1 } qw/GOLANG GOLFSCRIPT GCCGO JAVA RUBY/; + my $loglevel = $ENV{TEST_LOG_LEVEL} // ($ENV{TEST_VERBOSE} ? 'TRACE' : 'OFF'); my $log_conf = <{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' || $format eq 'RUBY'); + 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;