From 2c3ff8c81bcbf284da40dc7b3828bf878bf1be89 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 15 Oct 2019 17:16:22 +0200 Subject: tests: Introduce test for multi-homing STP features Config file sets omo-stp instance to bind on 2 IP addresses, and then the test verfies through linux /proc/net/sctp/* that binding is done correctly and that it can be reached from another remote address to one of the configured addresses. Change-Id: Ifa11b1fc882dff415405f62024e94bed67228866 --- tests/vty/Makefile.am | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tests/vty/Makefile.am') diff --git a/tests/vty/Makefile.am b/tests/vty/Makefile.am index 28e9dc2..be67293 100644 --- a/tests/vty/Makefile.am +++ b/tests/vty/Makefile.am @@ -5,7 +5,10 @@ AM_LDFLAGS = -static LDADD = $(top_builddir)/src/libosmo-sigtran.la \ $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS) -EXTRA_DIST = ss7_asp_test.vty +EXTRA_DIST = \ + ss7_asp_test.vty \ + vty_test_runner.py \ + $(NULL) noinst_PROGRAMS = ss7_asp_vty_test @@ -19,14 +22,22 @@ ext-tests: echo "Not running python-based external tests (determined at configure-time)" endif +vty-python-test: $(BUILT_SOURCES) + $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v + # To update the VTY script from current application behavior, # pass -u to osmo_verify_transcript_vty.py by doing: # make vty-test U=-u -vty-test: ss7_asp_vty_test +vty-transcript-test: ss7_asp_vty_test osmo_verify_transcript_vty.py -v \ -p 42043 \ -r "$(builddir)/ss7_asp_vty_test" \ $(U) $(srcdir)/ss7_asp_*.vty +# don't run multiple tests concurrently so that the ports don't conflict +vty-test: + $(MAKE) vty-python-test + $(MAKE) vty-transcript-test + check-local: $(MAKE) $(AM_MAKEFLAGS) ext-tests -- cgit v1.2.3