Thrift-2137:Ruby test lib fails jenkins build #864
authorjfarrell <jfarrell@apache.org>
Sun, 18 Aug 2013 20:36:06 +0000 (16:36 -0400)
committerjfarrell <jfarrell@apache.org>
Sun, 18 Aug 2013 20:36:06 +0000 (16:36 -0400)
Client: ruby test
Patch: jfarrell

Updates test suite to include needed dependencies and run via bundler.

test/rb/Gemfile [new file with mode: 0644]
test/rb/Makefile.am

diff --git a/test/rb/Gemfile b/test/rb/Gemfile
new file mode 100644 (file)
index 0000000..8301e44
--- /dev/null
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+require "rubygems"
+
+gem "rack", "~> 1.5.2"
+gem "thin", "~> 1.5.0"
index 58b11f2..9cdd99b 100644 (file)
@@ -24,5 +24,8 @@ stubs: ../ThriftTest.thrift ../SmallTest.thrift
        $(THRIFT) --gen rb ../SmallTest.thrift
 
 check: stubs
-       $(RUBY) -I. test_suite.rb
+if HAVE_BUNDLER
+       $(BUNDLER) install
+       $(BUNDLER) exec $(RUBY) -I. test_suite.rb
+endif