aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty/Makefile.am
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-10-15 17:16:22 +0200
committerlaforge <laforge@osmocom.org>2019-10-22 19:38:53 +0000
commit2c3ff8c81bcbf284da40dc7b3828bf878bf1be89 (patch)
tree6b9ac69b32218148cd5a61fe5c2787ae356c4445 /tests/vty/Makefile.am
parentdec38c141694412f7c114bcbf01cf71beacb73e0 (diff)
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
Diffstat (limited to 'tests/vty/Makefile.am')
-rw-r--r--tests/vty/Makefile.am15
1 files changed, 13 insertions, 2 deletions
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