From: Marius Gavrilescu Date: Mon, 9 Mar 2015 09:14:51 +0000 (+0200) Subject: Add ruby test X-Git-Tag: 5999.000_005~28 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=cd0623f030026cc4a5c2c03d4464bb2d3cb75ca8;hp=c4d90e6f4a1d14b1b898c28d6787a06c8dfa2a90 Add ruby test --- diff --git a/MANIFEST b/MANIFEST index 824d595..74bd5a2 100644 --- a/MANIFEST +++ b/MANIFEST @@ -117,6 +117,8 @@ t/problems/hello/tests/perl/meta.yml t/problems/hello/tests/perl/prog.pl t/problems/hello/tests/python/meta.yml t/problems/hello/tests/python/prog.py +t/problems/hello/tests/ruby/meta.yml +t/problems/hello/tests/ruby/prog.rb t/problems/increment/ver.c t/problems/increment/meta.yml t/problems/increment/tests/ac/meta.yml diff --git a/t/01-jobs.t b/t/01-jobs.t index 3d308c7..552e36f 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -29,6 +29,7 @@ use constant COMPILER => { HASKELL ghc PERL perl PYTHON python + RUBY ruby SBCL sbcl/}; my $loglevel = $ENV{TEST_LOG_LEVEL} // ($ENV{TEST_VERBOSE} ? 'TRACE' : 'OFF'); @@ -86,7 +87,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'; + 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'; $meta->{files}{prog}{content} = read_file "$source/$meta->{files}{prog}{name}"; } $meta = merge $meta, $pbmeta; diff --git a/t/problems/hello/tests/ruby/meta.yml b/t/problems/hello/tests/ruby/meta.yml new file mode 100644 index 0000000..680adc6 --- /dev/null +++ b/t/problems/hello/tests/ruby/meta.yml @@ -0,0 +1,7 @@ +test_name: Ruby +test_description: Hello world in Ruby +problem: hello +files: + prog: + format: RUBY + name: prog.rb diff --git a/t/problems/hello/tests/ruby/prog.rb b/t/problems/hello/tests/ruby/prog.rb new file mode 100644 index 0000000..733c205 --- /dev/null +++ b/t/problems/hello/tests/ruby/prog.rb @@ -0,0 +1 @@ +puts 'Hello World!'