]> iEval git - gruntmaster-daemon.git/commitdiff
Add ruby test
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 9 Mar 2015 09:14:51 +0000 (11:14 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 9 Mar 2015 09:16:47 +0000 (11:16 +0200)
MANIFEST
t/01-jobs.t
t/problems/hello/tests/ruby/meta.yml [new file with mode: 0644]
t/problems/hello/tests/ruby/prog.rb [new file with mode: 0644]

index 824d59516f638881aba2d4084becb78643e555a9..74bd5a2255a28678e33c0f4032f6de991d61c656 100644 (file)
--- 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
index 3d308c7912257ff4814e76a410b8616d625a5459..552e36f8cd238cd9d2a0791cb8db2bea67fe5590 100644 (file)
@@ -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 (file)
index 0000000..680adc6
--- /dev/null
@@ -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 (file)
index 0000000..733c205
--- /dev/null
@@ -0,0 +1 @@
+puts 'Hello World!'
This page took 0.02791 seconds and 4 git commands to generate.