|
@@ -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
|