From c85c8eede36224e72b42153708dd58a9f0610b0d Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 4 Sep 2007 10:22:45 -0700 Subject: Add 'test' target to makefiles. Hook up ipautil tests to run. --- ipa-python/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ipa-python/Makefile') diff --git a/ipa-python/Makefile b/ipa-python/Makefile index 542c50820..4b20d4bb7 100644 --- a/ipa-python/Makefile +++ b/ipa-python/Makefile @@ -1,6 +1,7 @@ PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib()") PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa CONFIGDIR ?= $(DESTDIR)/etc/ipa +TESTS = $(wildcard test/*.py) all: ; @@ -15,3 +16,10 @@ install: clean: rm -f *~ *.pyc +.PHONY: test +test: $(subst .py,.tst,$(TESTS)) + +%.tst: %.py + python $< + + -- cgit