summaryrefslogtreecommitdiff
path: root/test/rb
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2014-01-19 21:53:02 +0100
committerRoger Meier <roger@apache.org>2014-01-19 21:53:02 +0100
commitc95d5dfb76631af655f2d905e5e514d5db6078d5 (patch)
treef685ba28240e8870f19b8d2d1ba9e503ef1a43c0 /test/rb
parent0e8148024b4bd3f50331ad5fcc7334d4aa60949b (diff)
downloadthrift-c95d5dfb76631af655f2d905e5e514d5db6078d5.tar.gz
THRIFT-1810 add ruby to test/test.sh
initial version without cross language checks Signed-off-by: Roger Meier <roger@apache.org>
Diffstat (limited to 'test/rb')
-rwxr-xr-x[-rw-r--r--]test/rb/integration/accelerated_buffered_client.rb5
-rwxr-xr-x[-rw-r--r--]test/rb/integration/accelerated_buffered_server.rb7
-rwxr-xr-x[-rw-r--r--]test/rb/integration/buffered_client.rb5
-rwxr-xr-x[-rw-r--r--]test/rb/integration/simple_client.rb5
-rwxr-xr-x[-rw-r--r--]test/rb/integration/simple_server.rb6
-rwxr-xr-x[-rw-r--r--]test/rb/integration/test_simple_handler.rb5
6 files changed, 18 insertions, 15 deletions
diff --git a/test/rb/integration/accelerated_buffered_client.rb b/test/rb/integration/accelerated_buffered_client.rb
index 7cec1df51..f2403c5f4 100644..100755
--- a/test/rb/integration/accelerated_buffered_client.rb
+++ b/test/rb/integration/accelerated_buffered_client.rb
@@ -17,10 +17,11 @@
# under the License.
#
-require File.join(File.dirname(__FILE__), '../test_helper')
+$:.push File.dirname(__FILE__) + '/..'
+require 'test_helper'
require 'thrift'
-require 'ThriftTest'
+require 'thrift_test'
class AcceleratedBufferedClientTest < Test::Unit::TestCase
def setup
diff --git a/test/rb/integration/accelerated_buffered_server.rb b/test/rb/integration/accelerated_buffered_server.rb
index 1ca66e543..af5e6019b 100644..100755
--- a/test/rb/integration/accelerated_buffered_server.rb
+++ b/test/rb/integration/accelerated_buffered_server.rb
@@ -17,12 +17,11 @@
# under the License.
#
-$:.push File.dirname(__FILE__) + '/../gen-rb'
-$:.push File.join(File.dirname(__FILE__), '../../../lib/rb/lib')
-$:.push File.join(File.dirname(__FILE__), '../../../lib/rb/ext')
+$:.push File.dirname(__FILE__) + '/..'
+require 'test_helper'
require 'thrift'
-require 'ThriftTest'
+require 'thrift_test'
class SimpleHandler
[:testString, :testByte, :testI32, :testI64, :testDouble,
diff --git a/test/rb/integration/buffered_client.rb b/test/rb/integration/buffered_client.rb
index 1a925ccf4..16f6d4e9c 100644..100755
--- a/test/rb/integration/buffered_client.rb
+++ b/test/rb/integration/buffered_client.rb
@@ -17,10 +17,11 @@
# under the License.
#
-require File.join(File.dirname(__FILE__), '../test_helper')
+$:.push File.dirname(__FILE__) + '/..'
+require 'test_helper'
require 'thrift'
-require 'ThriftTest'
+require 'thrift_test'
class BufferedClientTest < Test::Unit::TestCase
def setup
diff --git a/test/rb/integration/simple_client.rb b/test/rb/integration/simple_client.rb
index 1064822ac..f7516fc6b 100644..100755
--- a/test/rb/integration/simple_client.rb
+++ b/test/rb/integration/simple_client.rb
@@ -17,10 +17,11 @@
# under the License.
#
-require File.join(File.dirname(__FILE__), '../test_helper')
+$:.push File.dirname(__FILE__) + '/..'
+require 'test_helper'
require 'thrift'
-require 'ThriftTest'
+require 'thrift_test'
class SimpleClientTest < Test::Unit::TestCase
def setup
diff --git a/test/rb/integration/simple_server.rb b/test/rb/integration/simple_server.rb
index 3518d2e14..e543b70c6 100644..100755
--- a/test/rb/integration/simple_server.rb
+++ b/test/rb/integration/simple_server.rb
@@ -17,11 +17,11 @@
# under the License.
#
-$:.push File.dirname(__FILE__) + '/../gen-rb'
-$:.push File.join(File.dirname(__FILE__), '../../../lib/rb/lib')
+$:.push File.dirname(__FILE__) + '/..'
+require 'test_helper'
require 'thrift'
-require 'ThriftTest'
+require 'thrift_test'
class SimpleHandler
[:testString, :testByte, :testI32, :testI64, :testDouble,
diff --git a/test/rb/integration/test_simple_handler.rb b/test/rb/integration/test_simple_handler.rb
index c34aa7e51..c0561391d 100644..100755
--- a/test/rb/integration/test_simple_handler.rb
+++ b/test/rb/integration/test_simple_handler.rb
@@ -17,10 +17,11 @@
# under the License.
#
-require File.join(File.dirname(__FILE__), '../test_helper')
+$:.push File.dirname(__FILE__) + '/..'
+require 'test_helper'
require 'thrift'
-require 'ThriftTest'
+require 'thrift_test'
class TestHandler
[:testString, :testByte, :testI32, :testI64, :testDouble,