X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon.pm;h=b8c6b5c5c839052baf31bd6a50d42d5cf3298cac;hb=3e58f1a188735de523a628d76126ea275112a305;hp=f37eaf6eec4b84658ef333feec2695204386318a;hpb=34e1677139c95be7cb419d4813d83943a70f446e;p=gruntmaster-daemon.git diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index f37eaf6..b8c6b5c 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -7,7 +7,7 @@ use warnings; our $VERSION = '5999.000_005'; use Gruntmaster::Daemon::Constants qw/ERR/; -use Gruntmaster::Daemon::Format qw/prepare_files stopvms/; +use Gruntmaster::Daemon::Format qw/prepare_files copy_from_vm stopvms/; use File::Slurp qw/read_file/; use File::Temp qw/tempdir/; @@ -21,6 +21,7 @@ use constant FORMAT_EXTENSION => { BRAINFUCK => 'bf', C => 'c', CPP => 'cpp', + D => 'd', GCCGO => 'go', GOLANG => 'go', GOLFSCRIPT => 'gs', @@ -28,6 +29,7 @@ use constant FORMAT_EXTENSION => { JAVA => 'java', JULIA => 'jl', MONO => 'cs', + OBERON => 'm', OCAML => 'ml', PASCAL => 'pas', PERL => 'pl', @@ -82,6 +84,7 @@ sub process{ if (ref $result) { my $result_text = $result->[1]; + copy_from_vm 'result'; $result_text .= ': ' . read_file 'result' if -s 'result'; get_logger->trace("Test $test result is " . $result_text); push @full_results, {id => $test, result => $result->[0], result_text => $result_text, time => time - $start_time}