aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty/Makefile.am
diff options
context:
space:
mode:
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