<p>osmith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16198">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Makefile convenience: add VTY_TEST var to run only one test<br><br>VTY transcript tests run all *.vty test scripts, and it is not so<br>trivial to figure out the test-db creation and cmdline to run only one<br>of them when debugging. Add VTY_TEST var, useful to pick one test on the<br>cmdline:<br><br>  cd tests<br>  make vty-test VTY_TEST=test_nodes.vty<br><br>Not all VTY tests leave files behind that match hlr_vty_test.db-*, so<br>make sure that make does not fail it they can't be deleted (rm -f).<br><br>Change-Id: I4ad7ddb31b2bfb668b3540cfef658417dd442375<br>---<br>M tests/Makefile.am<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/Makefile.am b/tests/Makefile.am</span><br><span>index 357fbac..62001f6 100644</span><br><span>--- a/tests/Makefile.am</span><br><span>+++ b/tests/Makefile.am</span><br><span>@@ -52,6 +52,7 @@</span><br><span> endif</span><br><span> </span><br><span> VTY_TEST_DB = hlr_vty_test.db</span><br><span style="color: hsl(120, 100%, 40%);">+VTY_TEST ?= *.vty</span><br><span> </span><br><span> # To update the VTY script from current application behavior,</span><br><span> # pass -u to vty_script_runner.py by doing:</span><br><span>@@ -63,9 +64,8 @@</span><br><span>      osmo_verify_transcript_vty.py -v \</span><br><span>           -n OsmoHLR -p 4258 \</span><br><span>                 -r "$(top_builddir)/src/osmo-hlr -c $(top_srcdir)/doc/examples/osmo-hlr.cfg -l $(VTY_TEST_DB)" \</span><br><span style="color: hsl(0, 100%, 40%);">-              $(U) $(srcdir)/*.vty</span><br><span style="color: hsl(0, 100%, 40%);">-    -rm -f $(VTY_TEST_DB)</span><br><span style="color: hsl(0, 100%, 40%);">-   -rm $(VTY_TEST_DB)-*</span><br><span style="color: hsl(120, 100%, 40%);">+          $(U) $(srcdir)/$(VTY_TEST)</span><br><span style="color: hsl(120, 100%, 40%);">+    -rm -f $(VTY_TEST_DB) $(VTY_TEST_DB)-*</span><br><span> </span><br><span> CTRL_TEST_DB = hlr_ctrl_test.db</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16198">change 16198</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-hlr/+/16198"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I4ad7ddb31b2bfb668b3540cfef658417dd442375 </div>
<div style="display:none"> Gerrit-Change-Number: 16198 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>