Skip to content

Files

Latest commit

ae0b22c · Sep 4, 2014

History

History
This branch is 1 commit ahead of, 3383 commits behind apache/thrift:master.

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 1, 2014
Aug 10, 2014
Aug 7, 2014
Jul 27, 2014
Aug 17, 2014
Apr 7, 2014
Apr 4, 2014
Mar 30, 2009
Jan 10, 2012
Jan 6, 2013
Aug 7, 2014
Aug 10, 2014
Aug 10, 2014
Jun 18, 2014
Jan 8, 2014
May 2, 2014
Mar 30, 2009
Sep 27, 2010
Feb 9, 2014
Jul 25, 2014
Sep 18, 2013
Sep 4, 2014
Apr 2, 2009
Jun 9, 2013
Mar 16, 2010
Sep 1, 2014
Dec 21, 2011
Mar 30, 2009
Aug 7, 2014
Jan 27, 2012
May 2, 2014
May 2, 2014
Mar 31, 2014
Mar 30, 2009
May 8, 2014
May 2, 2014
Aug 1, 2014
Aug 16, 2014
Sep 1, 2014
Aug 15, 2014

Apache Thrift - integration test suite

This is the cross everything integration test suite for Apache Thrift. executed by

make cross

at the moment, this starts the test.sh script which does the real cross test with different transports, protocols and languages.

Unit tests for languages ar usually located under lib//test/ cross language tests acording to ThriftTest.thrift shall be provided for every language including executables with the following command line interface for servers:

$ ./cpp/TestServer -h
Allowed options:
  -h [ --help ]               produce help message
  --port arg (=9090)          Port number to listen
  --domain-socket arg         Unix Domain Socket (e.g. /tmp/ThriftTest.thrift)
  --server-type arg (=simple) type of server, "simple", "thread-pool", 
                              "threaded", or "nonblocking"
  --transport arg (=buffered) transport: buffered, framed, http
  --protocol arg (=binary)    protocol: binary, compact, json
  --ssl                       Encrypted Transport using SSL
  --processor-events          processor-events
  -n [ --workers ] arg (=4)   Number of thread pools workers. Only valid for 
                          thread-pool server type

and this for clients:

$ ./cpp/TestClient -h
Allowed options:
  -h [ --help ]               produce help message
  --host arg (=localhost)     Host to connect
  --port arg (=9090)          Port number to connect
  --domain-socket arg         Domain Socket (e.g. /tmp/ThriftTest.thrift), 
                              instead of host and port
  --transport arg (=buffered) Transport: buffered, framed, http, evhttp
  --protocol arg (=binary)    Protocol: binary, compact, json
  --ssl                       Encrypted Transport using SSL
  -n [ --testloops ] arg (=1) Number of Tests

If you have executed the make check or make cross then you will be able to browse gen-html/ThriftTest.html with the test documentation.

return code shall be 0 on success or an integer in the range 1 - 255 on error

SSL

Test Keys and Certificates are provided in multiple formats under the following directory test/keys