thrift/test/ReflectionTest.cpp
David Reiss 8180c0c028 Thrift: "make check" support.
Summary:
Add a Makefile.am in the test directory that runs some of the test programs
when "make check" is executed.  Also removed some obsolete comments.

Reviewed By: mcslee

Test Plan:
Ran make check, saw all tests pass.
Ran make install, saw no test programs installed.
Ran ./cleanup.sh, saw a pristine workspace.

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665458 13f79535-47bb-0310-9956-ffa450edef68
2008-02-04 21:14:14 +00:00

20 lines
595 B
C++

#include <iostream>
#include "gen-cpp/PartiallyReflectable.h"
#include "gen-cpp/Service.h"
#include "../lib/cpp/src/protocol/TDebugProtocol.h"
int main() {
using std::cout;
using std::endl;
facebook::thrift::reflection::limited::Service srv1;
thrift::test::PartiallyReflectableIf::getStaticLimitedReflection(srv1);
cout << facebook::thrift::ThriftDebugString(srv1) << endl << endl;
facebook::thrift::reflection::limited::Service srv2;
test::stress::ServiceIf::getStaticLimitedReflection(srv2);
cout << facebook::thrift::ThriftDebugString(srv2) << endl << endl;
return 0;
}