THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby
Patch: Jens Geyer
This closes #341
Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed.
Not contained in this patch and still TODO:
- client side implementations, i.e. calls to testBinary() and appropriate tests
- server side hex printout missing for some languages
diff --git a/test/hs/ThriftTest_Main.hs b/test/hs/ThriftTest_Main.hs
index 1139506..670023e 100755
--- a/test/hs/ThriftTest_Main.hs
+++ b/test/hs/ThriftTest_Main.hs
@@ -67,6 +67,10 @@
ThriftTestUtils.serverLog $ show x
return x
+ testBinary _ x = do
+ ThriftTestUtils.serverLog $ show x
+ return x
+
testStruct _ x = do
ThriftTestUtils.serverLog $ show x
return x
@@ -150,6 +154,8 @@
v9 <- Client.testDouble ps (-3.14)
ThriftTestUtils.clientLog $ show v9
+ -- TODO: Client.testBinary ...
+
v10 <- Client.testMap ps (Map.fromList [(1,1),(2,2),(3,3)])
ThriftTestUtils.clientLog $ show v10