thrift/test/Makefile.am
David Reiss 28f298dd5d Memory-based transport rewrite.
The old implementations of the memory-based transports (TBufferedTransport,
TFramedTransport, and TMemoryBuffer) shared very little code and all worked
a bit differently.  This change unifies them all as subclasses of a single
base (TBufferBase) which handles the fast-path operations (when requests
can be satisfied by the buffer) with inline methods (that will eventually
be made nonvirtual in the template branch) and calls out to pure-virutal
methods to handle full/empty buffers.  All of the buffer-management is now
done in terms of "base and bound" pointers rather than "pos" integers.

These classes were moved to TBufferTransports.{h,cpp}.  The .h is included
in TTransportUtils for backwards compatibility.

Also added a "TShortReadTransport" to assist testing transports.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665676 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 06:17:36 +00:00

125 lines
2.3 KiB
Makefile

SUBDIRS = py
if ENABLE_JAVA
SUBDIRS += java
endif
noinst_LTLIBRARIES = libtestgencpp.la
libtestgencpp_la_SOURCES = \
gen-cpp/DebugProtoTest_types.cpp \
gen-cpp/OptionalRequiredTest_types.cpp \
gen-cpp/DebugProtoTest_types.cpp \
gen-cpp/PartiallyReflectable.cpp \
gen-cpp/Service.cpp \
gen-cpp/StressTest_types.cpp \
gen-cpp/SecondService.cpp \
gen-cpp/ThriftTest_constants.cpp \
gen-cpp/ThriftTest.cpp \
gen-cpp/ThriftTest_types.cpp
libtestgencpp_la_LIBADD = $(top_srcdir)/lib/cpp/libthrift.la
noinst_PROGRAMS = Benchmark
Benchmark_SOURCES = \
Benchmark.cpp
Benchmark_LDADD = libtestgencpp.la
check_PROGRAMS = \
TFDTransportTest \
TPipedTransportTest \
DebugProtoTest \
JSONProtoTest \
OptionalRequiredTest \
ReflectionTest \
UnitTests
TESTS = \
$(check_PROGRAMS)
UnitTests_SOURCES = \
UnitTestMain.cpp \
TMemoryBufferTest.cpp \
TBufferBaseTest.cpp
UnitTests_LDADD = libtestgencpp.la
#
# TFDTransportTest
#
TFDTransportTest_SOURCES = \
TFDTransportTest.cpp
TFDTransportTest_LDADD = \
$(top_srcdir)/lib/cpp/libthrift.la
#
# TPipedTransportTest
#
TPipedTransportTest_SOURCES = \
TPipedTransportTest.cpp
TPipedTransportTest_LDADD = \
$(top_srcdir)/lib/cpp/libthrift.la
#
# DebugProtoTest
#
DebugProtoTest_SOURCES = \
DebugProtoTest.cpp
DebugProtoTest_LDADD = libtestgencpp.la
#
# JSONProtoTest
#
JSONProtoTest_SOURCES = \
JSONProtoTest.cpp
JSONProtoTest_LDADD = libtestgencpp.la
#
# OptionalRequiredTest
#
OptionalRequiredTest_SOURCES = \
OptionalRequiredTest.cpp
OptionalRequiredTest_LDADD = libtestgencpp.la
#
# ReflectionTest
#
ReflectionTest_SOURCES = \
ReflectionTest.cpp
ReflectionTest_LDADD = libtestgencpp.la
#
# Common thrift code generation rules
#
THRIFT = $(top_srcdir)/compiler/cpp/thrift
gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
$(THRIFT) --gen cpp:dense,reflection_limited $<
gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
$(THRIFT) --gen cpp:dense $<
gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
$(THRIFT) --gen cpp:dense,reflection_limited $<
gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
$(THRIFT) --gen cpp:dense,reflection_limited $<
INCLUDES = \
-I$(top_srcdir)/lib/cpp/src
AM_CPPFLAGS = $(BOOST_CPPFLAGS)
clean-local:
$(RM) -r gen-cpp