Change in osmo-hlr[master]: Makefile convenience: add VTY_TEST var to run only one test

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Mon Nov 25 04:46:00 UTC 2019


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hlr/+/16198 )


Change subject: Makefile convenience: add VTY_TEST var to run only one test
......................................................................

Makefile convenience: add VTY_TEST var to run only one test

VTY transcript tests run all *.vty test scripts, and it is not so trivial to
figure out the test-db creation and cmdline to run only one of them when
debugging. Add VTY_TEST var, useful to pick one test on the cmdline:

  cd tests
  make vty-test VTY_TEST=test_nodes.vty

Change-Id: I4ad7ddb31b2bfb668b3540cfef658417dd442375
---
M tests/Makefile.am
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/98/16198/1

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 357fbac..b44a209 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -52,6 +52,7 @@
 endif
 
 VTY_TEST_DB = hlr_vty_test.db
+VTY_TEST ?= *.vty
 
 # To update the VTY script from current application behavior,
 # pass -u to vty_script_runner.py by doing:
@@ -63,7 +64,7 @@
 	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 $(VTY_TEST_DB)" \
-		$(U) $(srcdir)/*.vty
+		$(U) $(srcdir)/$(VTY_TEST)
 	-rm -f $(VTY_TEST_DB)
 	-rm $(VTY_TEST_DB)-*
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/16198
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I4ad7ddb31b2bfb668b3540cfef658417dd442375
Gerrit-Change-Number: 16198
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191125/a9c42dd9/attachment.htm>


More information about the gerrit-log mailing list