From 1e6d378fb047f52f56b2ace74b9da812397caf2c Mon Sep 17 00:00:00 2001 From: "Jeremy C. Reed" Date: Wed, 21 Apr 2010 03:08:36 +0000 Subject: [PATCH] Enable the cmdctl_test.py unit test. (It was commented out.) The test was fixed in r1768. That was for ticket #157. Running test: cmdctl_test.py .................. ---------------------------------------------------------------------- Ran 18 tests in 0.027s OK git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1769 e5f2f494-b856-4b98-b285-d166d9295462 --- src/bin/cmdctl/tests/Makefile.am | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/bin/cmdctl/tests/Makefile.am b/src/bin/cmdctl/tests/Makefile.am index 7b950d0cb6..c2f09c6cd4 100644 --- a/src/bin/cmdctl/tests/Makefile.am +++ b/src/bin/cmdctl/tests/Makefile.am @@ -1,14 +1,12 @@ PYTESTS = cmdctl_test.py EXTRA_DIST = $(PYTESTS) -### # exclude for now because it fails -### -#### later will have configure option to choose this, like: coverage run --branch -###PYCOVERAGE = $(PYTHON) -#### test using command-line arguments, so use check-local target instead of TESTS -###check-local: -### for pytest in $(PYTESTS) ; do \ -### echo Running test: $$pytest ; \ -### env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_srcdir)/src/bin/cmdctl \ -### $(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \ -### done +# later will have configure option to choose this, like: coverage run --branch +PYCOVERAGE = $(PYTHON) +# test using command-line arguments, so use check-local target instead of TESTS +check-local: + for pytest in $(PYTESTS) ; do \ + echo Running test: $$pytest ; \ + env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_srcdir)/src/bin/cmdctl \ + $(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \ + done