This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push:
new 4e2b166 Cleanup: break down test_libquic into small check programs
4e2b166 is described below
commit 4e2b166c4ae3e20f704d214567017798cf6e5c0d
Author: Masaori Koshiba <[email protected]>
AuthorDate: Tue Jun 26 11:37:34 2018 +0900
Cleanup: break down test_libquic into small check programs
---
.gitignore | 20 ++++-
iocore/net/quic/Makefile.am | 180 +++++++++++++++++++++++++++++++++++++-------
2 files changed, 171 insertions(+), 29 deletions(-)
diff --git a/.gitignore b/.gitignore
index 70bd684..cdccef7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -94,8 +94,24 @@ lib/perl/lib/Apache/TS.pm
iocore/net/test_certlookup
iocore/net/test_UDPNet
-iocore/net/quic/test_libquic
-iocore/net/quic/test_libquic_w_ep
+iocore/net/quic/test_QUICAckFrameCreator
+iocore/net/quic/test_QUICFlowController
+iocore/net/quic/test_QUICFrame
+iocore/net/quic/test_QUICFrameDispatcher
+iocore/net/quic/test_QUICHandshake
+iocore/net/quic/test_QUICHandshakeProtocol
+iocore/net/quic/test_QUICIncomingFrameBuffer
+iocore/net/quic/test_QUICInvariants
+iocore/net/quic/test_QUICKeyGenerator
+iocore/net/quic/test_QUICLossDetector
+iocore/net/quic/test_QUICPacket
+iocore/net/quic/test_QUICPacketFactory
+iocore/net/quic/test_QUICStream
+iocore/net/quic/test_QUICStreamManager
+iocore/net/quic/test_QUICStreamState
+iocore/net/quic/test_QUICTransportParameters
+iocore/net/quic/test_QUICTypeUtil
+iocore/net/quic/test_QUICVersionNegotiator
iocore/aio/test_AIO
iocore/eventsystem/test_Buffer
iocore/eventsystem/test_Event
diff --git a/iocore/net/quic/Makefile.am b/iocore/net/quic/Makefile.am
index d70093f..7411ef2 100644
--- a/iocore/net/quic/Makefile.am
+++ b/iocore/net/quic/Makefile.am
@@ -82,16 +82,32 @@ libquic_a_SOURCES = \
#
check_PROGRAMS = \
- test_libquic
+ test_QUICAckFrameCreator \
+ test_QUICFlowController \
+ test_QUICFrame \
+ test_QUICFrameDispatcher \
+ test_QUICLossDetector \
+ test_QUICHandshake \
+ test_QUICHandshakeProtocol \
+ test_QUICIncomingFrameBuffer \
+ test_QUICInvariants \
+ test_QUICKeyGenerator \
+ test_QUICPacket \
+ test_QUICPacketFactory \
+ test_QUICStream \
+ test_QUICStreamManager \
+ test_QUICStreamState \
+ test_QUICTransportParameters \
+ test_QUICTypeUtil \
+ test_QUICVersionNegotiator
-test_libquic_CPPFLAGS = \
+TESTS = $(check_PROGRAMS)
+
+test_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(abs_top_srcdir)/tests/include
-test_libquic_LDFLAGS = \
- @AM_LDFLAGS@
-
-test_libquic_LDADD = \
+test_LDADD = \
libquic.a \
$(top_builddir)/lib/records/librecords_p.a \
$(top_builddir)/lib/ts/libtsutil.la \
@@ -101,29 +117,139 @@ test_libquic_LDADD = \
@LIBTCL@ @OPENSSL_LIBS@ \
@HWLOC_LIBS@
-test_libquic_SOURCES = \
+test_event_main_SOURCES = \
./test/event_processor_main.cc \
- ./test/stub.cc \
- ./test/test_QUICAckFrameCreator.cc \
- ./test/test_QUICFlowController.cc \
- ./test/test_QUICFrame.cc \
- ./test/test_QUICFrameDispatcher.cc \
- ./test/test_QUICLossDetector.cc \
- ./test/test_QUICHandshake.cc \
- ./test/test_QUICHandshakeProtocol.cc \
- ./test/test_QUICIncomingFrameBuffer.cc \
- ./test/test_QUICInvariants.cc \
- ./test/test_QUICKeyGenerator.cc \
- ./test/test_QUICPacket.cc \
- ./test/test_QUICPacketFactory.cc \
- ./test/test_QUICStream.cc \
- ./test/test_QUICStreamManager.cc \
- ./test/test_QUICStreamState.cc \
- ./test/test_QUICTransportParameters.cc \
- ./test/test_QUICTypeUtil.cc \
- ./test/test_QUICVersionNegotiator.cc
+ ./test/stub.cc
-TESTS = $(check_PROGRAMS)
+test_main_SOURCES = \
+ ./test/main.cc \
+ ./test/stub.cc
+
+test_QUICAckFrameCreator_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICAckFrameCreator_LDFLAGS = @AM_LDFLAGS@
+test_QUICAckFrameCreator_LDADD = $(test_LDADD)
+test_QUICAckFrameCreator_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICAckFrameCreator.cc
+
+test_QUICFlowController_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICFlowController_LDFLAGS = @AM_LDFLAGS@
+test_QUICFlowController_LDADD = $(test_LDADD)
+test_QUICFlowController_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICFlowController.cc
+
+test_QUICFrame_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICFrame_LDFLAGS = @AM_LDFLAGS@
+test_QUICFrame_LDADD = $(test_LDADD)
+test_QUICFrame_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICFrame.cc
+
+test_QUICFrameDispatcher_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICFrameDispatcher_LDFLAGS = @AM_LDFLAGS@
+test_QUICFrameDispatcher_LDADD = $(test_LDADD)
+test_QUICFrameDispatcher_SOURCES = \
+ $(test_event_main_SOURCES) \
+ ./test/test_QUICFrameDispatcher.cc
+
+test_QUICLossDetector_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICLossDetector_LDFLAGS = @AM_LDFLAGS@
+test_QUICLossDetector_LDADD = $(test_LDADD)
+test_QUICLossDetector_SOURCES = \
+ $(test_event_main_SOURCES) \
+ ./test/test_QUICLossDetector.cc
+
+test_QUICHandshake_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICHandshake_LDFLAGS = @AM_LDFLAGS@
+test_QUICHandshake_LDADD = $(test_LDADD)
+test_QUICHandshake_SOURCES = \
+ $(test_event_main_SOURCES) \
+ ./test/test_QUICHandshake.cc
+
+test_QUICHandshakeProtocol_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICHandshakeProtocol_LDFLAGS = @AM_LDFLAGS@
+test_QUICHandshakeProtocol_LDADD = $(test_LDADD)
+test_QUICHandshakeProtocol_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICHandshakeProtocol.cc
+
+test_QUICIncomingFrameBuffer_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICIncomingFrameBuffer_LDFLAGS = @AM_LDFLAGS@
+test_QUICIncomingFrameBuffer_LDADD = $(test_LDADD)
+test_QUICIncomingFrameBuffer_SOURCES = \
+ $(test_event_main_SOURCES) \
+ ./test/test_QUICIncomingFrameBuffer.cc
+
+test_QUICInvariants_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICInvariants_LDFLAGS = @AM_LDFLAGS@
+test_QUICInvariants_LDADD = $(test_LDADD)
+test_QUICInvariants_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICInvariants.cc
+
+test_QUICKeyGenerator_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICKeyGenerator_LDFLAGS = @AM_LDFLAGS@
+test_QUICKeyGenerator_LDADD = $(test_LDADD)
+test_QUICKeyGenerator_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICKeyGenerator.cc
+
+test_QUICPacket_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICPacket_LDFLAGS = @AM_LDFLAGS@
+test_QUICPacket_LDADD = $(test_LDADD)
+test_QUICPacket_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICPacket.cc
+
+test_QUICPacketFactory_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICPacketFactory_LDFLAGS = @AM_LDFLAGS@
+test_QUICPacketFactory_LDADD = $(test_LDADD)
+test_QUICPacketFactory_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICPacketFactory.cc
+
+test_QUICStream_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICStream_LDFLAGS = @AM_LDFLAGS@
+test_QUICStream_LDADD = $(test_LDADD)
+test_QUICStream_SOURCES = \
+ $(test_event_main_SOURCES) \
+ ./test/test_QUICStream.cc
+
+test_QUICStreamManager_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICStreamManager_LDFLAGS = @AM_LDFLAGS@
+test_QUICStreamManager_LDADD = $(test_LDADD)
+test_QUICStreamManager_SOURCES = \
+ $(test_event_main_SOURCES) \
+ ./test/test_QUICStreamManager.cc
+
+test_QUICStreamState_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICStreamState_LDFLAGS = @AM_LDFLAGS@
+test_QUICStreamState_LDADD = $(test_LDADD)
+test_QUICStreamState_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICStreamState.cc
+
+test_QUICTransportParameters_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICTransportParameters_LDFLAGS = @AM_LDFLAGS@
+test_QUICTransportParameters_LDADD = $(test_LDADD)
+test_QUICTransportParameters_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICTransportParameters.cc
+
+test_QUICTypeUtil_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICTypeUtil_LDFLAGS = @AM_LDFLAGS@
+test_QUICTypeUtil_LDADD = $(test_LDADD)
+test_QUICTypeUtil_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICTypeUtil.cc
+
+test_QUICVersionNegotiator_CPPFLAGS = $(test_CPPFLAGS)
+test_QUICVersionNegotiator_LDFLAGS = @AM_LDFLAGS@
+test_QUICVersionNegotiator_LDADD = $(test_LDADD)
+test_QUICVersionNegotiator_SOURCES = \
+ $(test_main_SOURCES) \
+ ./test/test_QUICVersionNegotiator.cc
#
# clang-tidy