fix make distcheck with python tests
- bscs.config needed by the vty tests was not picked up as a dist file, because its suffix is not 'cfg'. Rename to *.cfg. Apply this rename in vty_test_runner.py and osmo-bsc_nat.cfg. - Remove restart counters after external tests, otherwise distcheck complains about uncleaned files. - Add contrib/ipa.py to EXTRA_DIST, hence add a Makefile.am to contrib/. Otherwise the python tests cannot find that dependency. Change-Id: I42b55cb1125099afc3a8e3f87c0e398426b2e2a9
This commit is contained in:
parent
3355fd674f
commit
625e05a6b2
|
@ -13,6 +13,7 @@ SUBDIRS = \
|
||||||
include \
|
include \
|
||||||
src \
|
src \
|
||||||
tests \
|
tests \
|
||||||
|
contrib \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
|
|
@ -263,4 +263,5 @@ AC_OUTPUT(
|
||||||
tests/nanobts_omlattr/Makefile
|
tests/nanobts_omlattr/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/examples/Makefile
|
doc/examples/Makefile
|
||||||
|
contrib/Makefile
|
||||||
Makefile)
|
Makefile)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
EXTRA_DIST = ipa.py
|
|
@ -62,5 +62,5 @@ nat
|
||||||
timeout ping 20
|
timeout ping 20
|
||||||
timeout pong 5
|
timeout pong 5
|
||||||
ip-dscp 0
|
ip-dscp 0
|
||||||
bscs-config-file bscs.config
|
bscs-config-file bscs.cfg
|
||||||
access-list bla imsi-allow ^11$
|
access-list bla imsi-allow ^11$
|
||||||
|
|
|
@ -87,7 +87,7 @@ python-tests: $(BUILT_SOURCES)
|
||||||
if BUILD_SMPP
|
if BUILD_SMPP
|
||||||
$(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
|
$(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
|
||||||
endif
|
endif
|
||||||
rm -f $(top_builddir)/hlr.sqlite3
|
rm -f $(top_builddir)/hlr.sqlite3 $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
|
||||||
else
|
else
|
||||||
python-tests: $(BUILT_SOURCES)
|
python-tests: $(BUILT_SOURCES)
|
||||||
echo "Not running python-based tests (determined at configure-time)"
|
echo "Not running python-based tests (determined at configure-time)"
|
||||||
|
|
|
@ -1220,7 +1220,7 @@ def add_nat_test(suite, workdir):
|
||||||
def nat_bsc_reload(x):
|
def nat_bsc_reload(x):
|
||||||
x.vty.command("configure terminal")
|
x.vty.command("configure terminal")
|
||||||
x.vty.command("nat")
|
x.vty.command("nat")
|
||||||
x.vty.command("bscs-config-file bscs.config")
|
x.vty.command("bscs-config-file bscs.cfg")
|
||||||
x.vty.command("end")
|
x.vty.command("end")
|
||||||
|
|
||||||
def nat_msc_ip(x, ip, port):
|
def nat_msc_ip(x, ip, port):
|
||||||
|
|
Loading…
Reference in New Issue