From: Marius Gavrilescu Date: Sun, 8 Feb 2015 14:43:15 +0000 (+0200) Subject: Skip JAVA/GOLANG/GCCGO if sudo is not used and improve TODO handling X-Git-Tag: 5999.000_005~40 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=fd807ac9dddfd831fc6f963fd5f6613b2e78c944;p=gruntmaster-daemon.git Skip JAVA/GOLANG/GCCGO if sudo is not used and improve TODO handling --- diff --git a/t/01-jobs.t b/t/01-jobs.t index 4d4f8bc..78dc416 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -75,19 +75,20 @@ for my $problem (@problems) { } TODO: { - local $TODO = $pbmeta->{todo} if exists $pbmeta->{todo}; note "Now testing problem $pbmeta->{name} ($pbmeta->{description})"; for my $source (<$problem/tests/*>) { SKIP: { my $meta = LoadFile "$source/meta.yml"; if ($meta->{files}{prog}) { - my $compiler = COMPILER->{$meta->{files}{prog}{format}}; + my $format = $meta->{files}{prog}{format}; + my $compiler = COMPILER->{$format}; skip "$compiler not found in path", 3 unless $ENV{GRUNTMASTER_VM} || which $compiler; - local $TODO = $meta->{todo} if exists $meta->{todo}; + 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'; $meta->{files}{prog}{content} = read_file "$source/$meta->{files}{prog}{name}"; } $meta = merge $meta, $pbmeta; + local $TODO = $meta->{todo} if exists $meta->{todo}; note "Running $meta->{test_name} ($meta->{test_description})..."; my $savedcwd = getcwd; chdir $tempdir;