src/thrift/qt/TQIODeviceTransport.h \
src/thrift/qt/TQTcpServer.h
-
-noinst_PROGRAMS = concurrency_test \
- processor_test
-
-concurrency_test_SOURCES = \
- src/thrift/concurrency/test/Tests.cpp \
- src/thrift/concurrency/test/ThreadFactoryTests.h \
- src/thrift/concurrency/test/ThreadManagerTests.h \
- src/thrift/concurrency/test/TimerManagerTests.h
-
-concurrency_test_LDADD = libthrift.la
-
-processor_test_SOURCES = src/thrift/processor/test/ProcessorTest.cpp \
- src/thrift/processor/test/EventLog.cpp \
- src/thrift/processor/test/ServerThread.cpp \
- src/thrift/processor/test/EventLog.h \
- src/thrift/processor/test/Handlers.h \
- src/thrift/processor/test/ServerThread.h
-
-processor_test_LDADD = libprocessortest.la \
- libthrift.la \
- libthriftnb.la \
- $(BOOST_LDFLAGS) \
- -levent \
- $(BOOST_ROOT_PATH)/lib/libboost_unit_test_framework.a
-
-check_PROGRAMS = \
- concurrency_test \
- processor_test
-
-TESTS = \
- $(check_PROGRAMS)
-
-noinst_LTLIBRARIES = libprocessortest.la
-
THRIFT = $(top_builddir)/compiler/cpp/thrift
-gen-cpp/ChildService.cpp: $(top_srcdir)/lib/cpp/src/thrift/processor/test/proc.thrift
- $(THRIFT) --gen cpp:templates,cob_style $<
-
-nodist_libprocessortest_la_SOURCES = \
- src/thrift/processor/test/gen-cpp/ChildService.h \
- src/thrift/processor/test/gen-cpp/ChildService.cpp \
- src/thrift/processor/test/gen-cpp/ParentService.h \
- src/thrift/processor/test/gen-cpp/ParentService.cpp
-
WINDOWS_DIST = \
README_WINDOWS \
src/thrift/windows \
# under the License.
#
-noinst_LTLIBRARIES = libtestgencpp.la
+noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
nodist_libtestgencpp_la_SOURCES = \
gen-cpp/DebugProtoTest_types.cpp \
gen-cpp/OptionalRequiredTest_types.cpp \
ThriftTest_extras.cpp \
DebugProtoTest_extras.cpp
+nodist_libprocessortest_la_SOURCES = \
+ gen-cpp/ChildService.cpp \
+ gen-cpp/ChildService.h \
+ gen-cpp/ParentService.cpp \
+ gen-cpp/ParentService.h \
+ gen-cpp/proc_types.cpp \
+ gen-cpp/proc_types.h
+
ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
TransportTest \
ZlibTest \
TFileTransportTest \
- UnitTests
+ UnitTests \
+ concurrency_test \
+ processor_test
TESTS_ENVIRONMENT= \
BOOST_TEST_LOG_SINK=tests.xml \
SpecializationTest_LDADD = libtestgencpp.la
-
+concurrency_test_SOURCES = \
+ concurrency/Tests.cpp \
+ concurrency/ThreadFactoryTests.h \
+ concurrency/ThreadManagerTests.h \
+ concurrency/TimerManagerTests.h
+
+concurrency_test_LDADD = \
+ $(top_builddir)/lib/cpp/libthrift.la
+
+processor_test_SOURCES = \
+ processor/ProcessorTest.cpp \
+ processor/EventLog.cpp \
+ processor/ServerThread.cpp \
+ processor/EventLog.h \
+ processor/Handlers.h \
+ processor/ServerThread.h
+
+processor_test_LDADD = libprocessortest.la \
+ $(top_builddir)/lib/cpp/libthrift.la \
+ $(top_builddir)/lib/cpp/libthriftnb.la \
+ $(BOOST_LDFLAGS) \
+ -levent \
+ $(BOOST_ROOT_PATH)/lib/libboost_unit_test_framework.a
#
# Common thrift code generation rules
#
gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: $(top_srcdir)/test/ThriftTest.thrift
$(THRIFT) --gen cpp:dense $<
+gen-cpp/ChildService.cpp: processor/proc.thrift
+ $(THRIFT) --gen cpp:templates,cob_style $<
+
INCLUDES = \
-I$(top_srcdir)/lib/cpp/src
* specific language governing permissions and limitations
* under the License.
*/
-#include "processor/test/EventLog.h"
+#include "EventLog.h"
#include <stdarg.h>
#ifndef _THRIFT_TEST_EVENTLOG_H_
#define _THRIFT_TEST_EVENTLOG_H_ 1
-#include "concurrency/Monitor.h"
+#include <thrift/concurrency/Monitor.h>
namespace apache { namespace thrift { namespace test {
#ifndef _THRIFT_PROCESSOR_TEST_HANDLERS_H_
#define _THRIFT_PROCESSOR_TEST_HANDLERS_H_ 1
-#include "processor/test/EventLog.h"
+#include "EventLog.h"
#include "gen-cpp/ParentService.h"
#include "gen-cpp/ChildService.h"
#include <thrift/server/TSimpleServer.h>
#include <thrift/transport/TSocket.h>
-#include <thrift/processor/test/EventLog.h>
-#include <thrift/processor/test/ServerThread.h>
-#include <thrift/processor/test/Handlers.h>
+#include "EventLog.h"
+#include "ServerThread.h"
+#include "Handlers.h"
#include "gen-cpp/ChildService.h"
using namespace std;
#ifndef _THRIFT_TEST_SERVERTHREAD_TCC_
#define _THRIFT_TEST_SERVERTHREAD_TCC_ 1
-#include "processor/test/ServerThread.h"
+#include "ServerThread.h"
-#include "concurrency/PosixThreadFactory.h"
-#include "concurrency/ThreadManager.h"
-#include "server/TThreadPoolServer.h"
-#include "transport/TBufferTransports.h"
-#include "transport/TServerSocket.h"
+#include <thrift/concurrency/PosixThreadFactory.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TServerSocket.h>
namespace apache { namespace thrift { namespace test {
#ifndef _THRIFT_TEST_SERVERTHREAD_H_
#define _THRIFT_TEST_SERVERTHREAD_H_ 1
-#include "TProcessor.h"
-#include "protocol/TProtocol.h"
-#include "server/TServer.h"
-#include "transport/TTransport.h"
+#include <thrift/TProcessor.h>
+#include <thrift/protocol/TProtocol.h>
+#include <thrift/server/TServer.h>
+#include <thrift/transport/TTransport.h>
-#include "processor/test/EventLog.h"
+#include "EventLog.h"
namespace apache { namespace thrift { namespace test {