Add GolfScript
[gruntmaster-daemon.git] / t / 01-jobs.t
index 44fa9cc166a93b055d2ea7887a8484bba0127347..bda315a1636ed78c89900cd68be769885ff27656 100644 (file)
@@ -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
@@ -32,6 +33,8 @@ use constant COMPILER => {
           RUBY ruby
           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 = <<CONF;
 log4perl.category.Gruntmaster.Daemon = $loglevel, stderr
@@ -87,7 +90,7 @@ for my $problem (@problems) {
                                        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' || $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;
This page took 0.010478 seconds and 4 git commands to generate.