diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-06 02:59:54 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-17 00:59:00 +0200 |
commit | 183e7009afc8577f0d89c99f92a5720697040494 (patch) | |
tree | 3c774fa05e32f09d3805845751b48d9554177153 /tests/Makefile.am | |
parent | b6837e36a34a1e9e7fafea822516e61285e3c09c (diff) |
implement subscriber vty interface, tests
Implement VTY commands for subscriber manipulation:
- create / delete subscriber
- modify MSISDN
- add/edit/remove 2G and 3G authentication data
- show by IMSI, MSISDN or DB ID.
(enable/disable CS/PS and purge/unpurge to follow later.)
Implement VTY unit tests for the new commands using new
osmo_verify_transcript_vty.py from osmo-python-tests.
Depends: libosmocore I1e94f5b0717b947d2a7a7d36bacdf04a75cb3522
osmo-python-tests Id47331009910e651372b9c9c76e12f2e8964cc2c
Change-Id: I42b3b70a0439a8f2e4964d7cc31e593c1f0d7537
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 0b625f5..8f1826d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -26,6 +26,7 @@ EXTRA_DIST = \ testsuite.at \ $(srcdir)/package.m4 \ $(TESTSUITE) \ + test_subscriber.vty \ ctrl_test_runner.py \ $(NULL) @@ -36,10 +37,26 @@ DISTCLEANFILES = \ $(NULL) if ENABLE_EXT_TESTS -python-tests: $(BUILT_SOURCES) +python-tests: +# don't run vty and ctrl tests concurrently so that the ports don't conflict + $(MAKE) vty-test $(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v + +VTY_TEST_DB = hlr_vty_test.db + +# To update the VTY script from current application behavior, +# pass -u to vty_script_runner.py by doing: +# make vty-test U=-u +vty-test: + -rm -f $(VTY_TEST_DB) + sqlite3 $(VTY_TEST_DB) < $(top_srcdir)/sql/hlr.sql + osmo_verify_transcript_vty.py -v \ + -n OsmoHLR -p 4258 \ + -r "$(top_builddir)/src/osmo-hlr -c $(top_srcdir)/doc/examples/osmo-hlr.cfg -l hlr_vty_test.db" \ + $(U) $(srcdir)/*.vty + -rm -f $(VTY_TEST_DB) else -python-tests: $(BUILT_SOURCES) +python-tests: echo "Not running python-based tests (determined at configure-time)" endif |