mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 16:51:55 -06:00
Add 'test' target to makefiles. Hook up ipautil tests to run.
This commit is contained in:
parent
90a34f3865
commit
c85c8eede3
5
Makefile
5
Makefile
@ -60,6 +60,11 @@ clean:
|
|||||||
done
|
done
|
||||||
rm -f *~
|
rm -f *~
|
||||||
|
|
||||||
|
test:
|
||||||
|
@for subdir in $(SUBDIRS); do \
|
||||||
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
||||||
|
done
|
||||||
|
|
||||||
version-update:
|
version-update:
|
||||||
sed s/VERSION/$(SERV_VERSION)/ ipa-server/freeipa-server.spec.in \
|
sed s/VERSION/$(SERV_VERSION)/ ipa-server/freeipa-server.spec.in \
|
||||||
> ipa-server/freeipa-server.spec
|
> ipa-server/freeipa-server.spec
|
||||||
|
@ -10,3 +10,5 @@ install:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *~ *.pyc
|
rm -f *~ *.pyc
|
||||||
|
|
||||||
|
test:
|
||||||
|
@ -21,3 +21,5 @@ clean:
|
|||||||
done
|
done
|
||||||
rm -f *~
|
rm -f *~
|
||||||
rm -f ipaclient/*~
|
rm -f ipaclient/*~
|
||||||
|
|
||||||
|
test:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib()")
|
PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib()")
|
||||||
PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa
|
PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa
|
||||||
CONFIGDIR ?= $(DESTDIR)/etc/ipa
|
CONFIGDIR ?= $(DESTDIR)/etc/ipa
|
||||||
|
TESTS = $(wildcard test/*.py)
|
||||||
|
|
||||||
all: ;
|
all: ;
|
||||||
|
|
||||||
@ -15,3 +16,10 @@ install:
|
|||||||
clean:
|
clean:
|
||||||
rm -f *~ *.pyc
|
rm -f *~ *.pyc
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test: $(subst .py,.tst,$(TESTS))
|
||||||
|
|
||||||
|
%.tst: %.py
|
||||||
|
python $<
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,12 +17,17 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.path.insert(0, ".")
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import ipa.ipautil
|
|
||||||
|
import ipautil
|
||||||
|
|
||||||
|
|
||||||
class TestCIDict(unittest.TestCase):
|
class TestCIDict(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.cidict = ipa.ipautil.CIDict()
|
self.cidict = ipautil.CIDict()
|
||||||
self.cidict["Key1"] = "val1"
|
self.cidict["Key1"] = "val1"
|
||||||
self.cidict["key2"] = "val2"
|
self.cidict["key2"] = "val2"
|
||||||
self.cidict["KEY3"] = "VAL3"
|
self.cidict["KEY3"] = "VAL3"
|
||||||
|
@ -21,3 +21,5 @@ clean:
|
|||||||
done
|
done
|
||||||
rm -f *~
|
rm -f *~
|
||||||
rm -f ipaserver/*~
|
rm -f ipaserver/*~
|
||||||
|
|
||||||
|
test:
|
||||||
|
Loading…
Reference in New Issue
Block a user