make: prepare for adding transcript tests
Separate 'make python-test' into separate make targets, to sensibly add VTY transcript tests in an upcoming commit. Feature: even though ./configure was called without --enable-external-tests, each of the {ctrl,vty}x{python,transcript} tests can be invoked individually by e.g. 'make vty-python-test'. Both 'vty-transcript-test' and 'ctrl-transcript-test' are still empty, a subsequent patch adds a vty-transcript-test. All of this in preparation of tweaking the 'mncc' vty configuration, to be able to track it in a vty transcript test. Change-Id: I688657e56ae469c07b9f25ba37275d38dbd457e2
This commit is contained in:
parent
e3033b3f48
commit
1231fdb7ad
|
@ -43,20 +43,55 @@ DISTCLEANFILES = \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
if ENABLE_EXT_TESTS
|
if ENABLE_EXT_TESTS
|
||||||
|
# don't run multiple tests concurrently so that the ports don't conflict
|
||||||
python-tests: $(BUILT_SOURCES)
|
python-tests: $(BUILT_SOURCES)
|
||||||
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
|
$(MAKE) vty-test
|
||||||
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
|
$(MAKE) ctrl-test
|
||||||
$(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
|
|
||||||
$(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
|
|
||||||
if BUILD_SMPP
|
if BUILD_SMPP
|
||||||
$(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
|
$(MAKE) smpp-test
|
||||||
endif
|
endif
|
||||||
rm -f $(top_builddir)/sms.db
|
|
||||||
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)"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
vty-python-test: $(BUILT_SOURCES)
|
||||||
|
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
|
||||||
|
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
|
||||||
|
$(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
|
||||||
|
rm -f $(top_builddir)/sms.db
|
||||||
|
|
||||||
|
# To update the VTY script from current application behavior,
|
||||||
|
# pass -u to vty_script_runner.py by doing:
|
||||||
|
# make vty-transcript-test U=-u
|
||||||
|
vty-transcript-test:
|
||||||
|
echo "No vty-transcript-test exists yet"
|
||||||
|
|
||||||
|
# don't run multiple tests concurrently so that the ports don't conflict
|
||||||
|
vty-test:
|
||||||
|
$(MAKE) vty-python-test
|
||||||
|
$(MAKE) vty-transcript-test
|
||||||
|
|
||||||
|
ctrl-python-test: $(BUILT_SOURCES)
|
||||||
|
$(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
|
||||||
|
rm -f $(top_builddir)/sms.db
|
||||||
|
|
||||||
|
# To update the CTRL script from current application behavior,
|
||||||
|
# pass -u to ctrl_script_runner.py by doing:
|
||||||
|
# make ctrl-transcript-test U=-u
|
||||||
|
ctrl-transcript-test:
|
||||||
|
echo "No ctrl-transcript-test exists yet"
|
||||||
|
|
||||||
|
# don't run multiple tests concurrently so that the ports don't conflict
|
||||||
|
ctrl-test:
|
||||||
|
$(MAKE) ctrl-python-test
|
||||||
|
$(MAKE) ctrl-transcript-test
|
||||||
|
|
||||||
|
smpp-test:
|
||||||
|
$(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
|
||||||
|
rm -f $(top_builddir)/sms.db
|
||||||
|
|
||||||
check-local: atconfig $(TESTSUITE)
|
check-local: atconfig $(TESTSUITE)
|
||||||
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
|
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
|
||||||
$(MAKE) $(AM_MAKEFLAGS) python-tests
|
$(MAKE) $(AM_MAKEFLAGS) python-tests
|
||||||
|
|
Loading…
Reference in New Issue