From cd0623f030026cc4a5c2c03d4464bb2d3cb75ca8 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 9 Mar 2015 11:14:51 +0200 Subject: [PATCH] Add ruby test --- MANIFEST | 2 ++ t/01-jobs.t | 3 ++- t/problems/hello/tests/ruby/meta.yml | 7 +++++++ t/problems/hello/tests/ruby/prog.rb | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 t/problems/hello/tests/ruby/meta.yml create mode 100644 t/problems/hello/tests/ruby/prog.rb 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!' -- 2.39.2