Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit dd65c45

Browse files
author
Jay Logue
committed
Functional tests for Weave over UDP communication
-- Implemented a set of basic functionality tests for sending and receiving Weave messages over UDP. Test cases cover: . IPv4 and IPv6 . Unicast, IPv6 multicast and IPv4 broadcast . Sending to/from IPv6 ULA and link-local addresses . Sending over specific network interfaces . Sending and receiving while bound to specific local addresses (IPv4 and IPv6)
1 parent cb0fe7f commit dd65c45

File tree

3 files changed

+597
-3
lines changed

3 files changed

+597
-3
lines changed

src/test-apps/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ check_SCRIPTS += \
11171117
happy/tests/standalone/dd/test_weave_dd_01.py \
11181118
happy/tests/standalone/heartbeat/test_weave_heartbeat_01.py \
11191119
happy/tests/standalone/wrmp/test_weave_wrmp_01.py \
1120+
happy/tests/standalone/ip_comms/test_weave_udp.py \
11201121
$(NULL)
11211122
endif # WEAVE_RUN_HAPPY_CORE
11221123

src/test-apps/Makefile.in

+12-3
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ target_triplet = @target@
591591
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/dd/test_weave_dd_01.py \
592592
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/heartbeat/test_weave_heartbeat_01.py \
593593
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/wrmp/test_weave_wrmp_01.py \
594+
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/ip_comms/test_weave_udp.py \
594595
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ $(NULL)
595596

596597
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_INET_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@am__append_43 = \
@@ -1427,7 +1428,7 @@ TestWdmUpdateResponse_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
14271428
$(AM_CXXFLAGS) $(CXXFLAGS) $(TestWdmUpdateResponse_LDFLAGS) \
14281429
$(LDFLAGS) -o $@
14291430
am__TestWeaveCert_SOURCES_DIST = TestWeaveCert.cpp \
1430-
TestWeaveCertData.cpp
1431+
TestWeaveCertData.cpp TestPersistedStorageImplementation.cpp
14311432
@WEAVE_BUILD_TESTS_TRUE@am_TestWeaveCert_OBJECTS = \
14321433
@WEAVE_BUILD_TESTS_TRUE@ TestWeaveCert.$(OBJEXT) \
14331434
@WEAVE_BUILD_TESTS_TRUE@ TestWeaveCertData.$(OBJEXT) \
@@ -2465,7 +2466,8 @@ am__EXEEXT_34 =
24652466
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/messagelayer/test_weave_messagelayer_01.py \
24662467
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/dd/test_weave_dd_01.py \
24672468
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/heartbeat/test_weave_heartbeat_01.py \
2468-
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/wrmp/test_weave_wrmp_01.py
2469+
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/wrmp/test_weave_wrmp_01.py \
2470+
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_CORE_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/ip_comms/test_weave_udp.py
24692471
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_INET_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@am__EXEEXT_38 = happy/tests/standalone/inet/test_inet_01.py \
24702472
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_INET_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/inet/test_inet_dns_01.py \
24712473
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_RUN_HAPPY_INET_TRUE@@WEAVE_RUN_HAPPY_SERVICE_FALSE@@WEAVE_RUN_HAPPY_TRUE@ happy/tests/standalone/inet/test_inet_multicast_01.py
@@ -3329,7 +3331,7 @@ noinst_HEADERS = CASEOptions.h DMTestClient.h DeviceDescOptions.h \
33293331
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_BUILD_WARM_TRUE@TestWarm_SOURCES = TestWarm.cpp TestPersistedStorageImplementation.cpp
33303332
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_BUILD_WARM_TRUE@TestWarm_LDFLAGS = $(AM_CPPFLAGS)
33313333
@WEAVE_BUILD_TESTS_TRUE@@WEAVE_BUILD_WARM_TRUE@TestWarm_LDADD = libWeaveTestGroupKeyStore.a $(COMMON_LDADD)
3332-
@WEAVE_BUILD_TESTS_TRUE@TestWeaveCert_SOURCES = TestWeaveCert.cpp TestWeaveCertData.cpp
3334+
@WEAVE_BUILD_TESTS_TRUE@TestWeaveCert_SOURCES = TestWeaveCert.cpp TestWeaveCertData.cpp TestPersistedStorageImplementation.cpp
33333335
@WEAVE_BUILD_TESTS_TRUE@TestWeaveCert_LDADD = libWeaveTestCommon.a $(COMMON_LDADD)
33343336
@WEAVE_BUILD_TESTS_TRUE@TestWeaveEncoding_SOURCES = TestWeaveEncoding.cpp
33353337
@WEAVE_BUILD_TESTS_TRUE@TestWeaveEncoding_LDADD =
@@ -8474,6 +8476,13 @@ happy/tests/standalone/wrmp/test_weave_wrmp_01.py.log: happy/tests/standalone/wr
84748476
--log-file $$b.log --trs-file $$b.trs \
84758477
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
84768478
"$$tst" $(AM_TESTS_FD_REDIRECT)
8479+
happy/tests/standalone/ip_comms/test_weave_udp.py.log: happy/tests/standalone/ip_comms/test_weave_udp.py
8480+
@p='happy/tests/standalone/ip_comms/test_weave_udp.py'; \
8481+
b='happy/tests/standalone/ip_comms/test_weave_udp.py'; \
8482+
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
8483+
--log-file $$b.log --trs-file $$b.trs \
8484+
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
8485+
"$$tst" $(AM_TESTS_FD_REDIRECT)
84778486
happy/tests/standalone/inet/test_inet_01.py.log: happy/tests/standalone/inet/test_inet_01.py
84788487
@p='happy/tests/standalone/inet/test_inet_01.py'; \
84798488
b='happy/tests/standalone/inet/test_inet_01.py'; \

0 commit comments

Comments
 (0)