summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/post.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/config/post.in b/src/config/post.in
index e61561a2b..47ef248f8 100644
--- a/src/config/post.in
+++ b/src/config/post.in
@@ -129,9 +129,14 @@ undepend-postrecurse: undepend-recurse
##############################
# Python tests
-check-unix:: check-python-tests-@HAVE_PYTHON@
+check-unix:: check-pytests
-check-python-tests-yes:
+# Makefile.in should add dependencies to check-pytests for test
+# programs that need to be built before scripts are run.
+
+check-pytests:: check-pytests-@HAVE_PYTHON@
+
+check-pytests-yes:
@pytests="$(PYTESTS)"; \
for t in $$pytests; do \
echo PYTHONPATH=$(top_srcdir)/util VALGRIND="$(VALGRIND)" \
@@ -140,7 +145,7 @@ check-python-tests-yes:
$(PYTHON) $(srcdir)/$$t $(PYTESTFLAGS) || exit 1; \
done
-check-python-tests-no:
+check-pytests-no:
@if test -n "$(PYTESTS)"; then \
echo "+++ Skipping because Python not available: $(PYTESTS)"; \
fi