mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add 'test' target to makefiles. Hook up ipautil tests to run.
This commit is contained in:
@@ -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 $<
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user