summaryrefslogtreecommitdiffstats
path: root/src/kadmin/passwd/unit-test/Makefile.in
blob: 1ec39d0bb9fbdc3bd221686be76ee65dbc2f9ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
thisconfigdir=./../..
myfulldir=kadmin/passwd/unit-test
mydir=passwd/unit-test
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
check unit-test:: unit-test-@DO_TEST@

unit-test-:
	@echo "+++"
	@echo "+++ WARNING: kpasswd unit tests not run."
	@echo "+++ Either tcl, runtest, or Perl is unavailable."
	@echo "+++"

unit-test-ok:: unit-test-setup unit-test-body unit-test-cleanup

unit-test-body::	
	$(ENV_SETUP) $(RUNTEST) --tool kpasswd KPASSWD=../kpasswd \
		KINIT=$(BUILDTOP)/clients/kinit/kinit \
		KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy

unit-test-setup::
	$(ENV_SETUP) $(START_SERVERS)

unit-test-cleanup::
	$(ENV_SETUP) $(STOP_SERVERS)
clean::
	$(RM) dbg.log kpasswd.sum kpasswd.log