summaryrefslogtreecommitdiffstats
path: root/src/tests/dejagnu/Makefile.in
blob: 6794a91d6e9b14328fa34b778d16d9c56ef521b1 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
mydir=tests$(S)dejagnu
BUILDTOP=$(REL)..$(S)..
RUNTEST = @RUNTEST@ $(DEJAFLAGS)
RUNTESTFLAGS =
KRB5_RUN_ENV= @KRB5_RUN_ENV@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)

SRCS=$(srcdir)/t_inetd.c

all:: t_inetd

install::

check:: check-runtest-@HAVE_RUNTEST@

check-runtest-no::
	@echo "+++"
	@echo "+++ WARNING: tests/dejagnu tests not run."
	@echo "+++ runtest is unavailable."
	@echo "+++"

# Set VALGRIND at run time, that may be changed when running 'make'.
check-runtest-yes:: t_inetd site.exp
	$(RUNTEST) --tool krb VALGRIND="$(VALGRIND)" $(RUNTESTFLAGS)

t_inetd:: t_inetd.o $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o t_inetd t_inetd.o $(KRB5_BASE_LIBS)

clean::
	$(RM) t_inetd t_inetd.o site.exp runenv.vars runenv.vals

clean-unix::
	$(RM) -rf tmpdir dbg.log krb.log krb.sum

runenv.vals: Makefile
	$(KRB5_RUN_ENV) for i in $(KRB5_RUN_VARS); do \
		eval echo "{$$i=\$$$$i}"; done > runenv.vals

site.exp: runenv.vals Makefile
	echo "set runvarlist [list `cat runenv.vals | tr '\n' ' '`]" | \
		sed -e 's%=\.%='`pwd`'/.%g' > site.exp
	echo "set PRIOCNTL_HACK @PRIOCNTL_HACK@" >> site.exp