aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty/Makefile.am
blob: 28e9dc27a02d74846978cd1baa1cc6df91b976d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -Wall
AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS)

AM_LDFLAGS = -static
LDADD = $(top_builddir)/src/libosmo-sigtran.la \
	$(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS)

EXTRA_DIST = ss7_asp_test.vty

noinst_PROGRAMS = ss7_asp_vty_test

ss7_asp_vty_test_SOURCES = ss7_asp_vty_test.c

if ENABLE_EXT_TESTS
ext-tests:
	$(MAKE) vty-test
else
ext-tests:
	echo "Not running python-based external tests (determined at configure-time)"
endif

# 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
	osmo_verify_transcript_vty.py -v \
		-p 42043 \
		-r "$(builddir)/ss7_asp_vty_test" \
		$(U) $(srcdir)/ss7_asp_*.vty

check-local:
	$(MAKE) $(AM_MAKEFLAGS) ext-tests