tests: Create tests directory and move the VTY testing into there

This commit is contained in:
Holger Hans Peter Freyther 2013-07-28 16:15:41 +02:00 committed by Ivan Kluchnikov
parent 421fe79e39
commit bb00704871
3 changed files with 18 additions and 12 deletions

View File

@ -1,16 +1,5 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
SUBDIRS = src examples
SUBDIRS = src examples tests
EXTRA_DIST = osmoappdesc.py
if ENABLE_VTY_TESTS
python-tests: $(BUILT_SOURCES)
osmotestvty.py -p $(top_srcdir) -w $(builddir) -v
osmotestconfig.py -p $(top_srcdir) -w $(builddir) -v
else
python-tests: $(BUILT_SOURCES)
@echo "Not running python-based tests (determined at configure-time)"
endif
check-local: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) python-tests

View File

@ -60,4 +60,5 @@ AM_CONDITIONAL(ENABLE_VTY_TESTS, test "x$enable_vty_tests" = "xyes")
AC_OUTPUT(
src/Makefile
examples/Makefile
tests/Makefile
Makefile)

16
tests/Makefile.am Normal file
View File

@ -0,0 +1,16 @@
# Python testing
if ENABLE_VTY_TESTS
python-tests: $(BUILT_SOURCES)
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
else
python-tests: $(BUILT_SOURCES)
@echo "Not running python-based tests (determined at configure-time)"
endif
check-local: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) python-tests