summaryrefslogtreecommitdiffstats
path: root/src/tests/dejagnu
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/dejagnu')
-rw-r--r--src/tests/dejagnu/Makefile.in12
-rw-r--r--src/tests/dejagnu/configure.in1
2 files changed, 11 insertions, 2 deletions
diff --git a/src/tests/dejagnu/Makefile.in b/src/tests/dejagnu/Makefile.in
index bcfb0ef0f3..e82af2cdb4 100644
--- a/src/tests/dejagnu/Makefile.in
+++ b/src/tests/dejagnu/Makefile.in
@@ -1,5 +1,6 @@
RUNTEST = @RUNTEST@
RUNTESTFLAGS =
+KRB5_RUN_ENV= @KRB5_RUN_ENV@
all install::
@@ -8,7 +9,7 @@ check:: check-$(RUNTEST)
check-::
@echo "Dejagnu is not installed on this system. No tests run."
-check-runtest:: t_inetd
+check-runtest:: t_inetd site.exp
$(RUNTEST) --tool krb --srcdir $(srcdir) $(RUNTESTFLAGS)
CFLAGS = $(CCOPTS) $(DEFS)
@@ -17,7 +18,14 @@ t_inetd:: t_inetd.o $(DEPLIBS)
$(LD) $(LDFLAGS) $(LDARGS) -o t_inetd t_inetd.o $(LIBS)
clean::
- $(RM) t_inetd t_inetd.o
+ $(RM) t_inetd t_inetd.o site.exp
clean-unix::
$(RM) -rf tmpdir dbg.log krb.log krb.sum
+
+site.exp:: Makefile
+ echo "set runvarlist [list $(KRB5_RUN_ENV)]" | sed \
+ -e 's/;//g' -e 's:=\.:='`pwd`'/.:g' > site.exp
+
+
+
diff --git a/src/tests/dejagnu/configure.in b/src/tests/dejagnu/configure.in
index 0a312b17e8..b699e65e6c 100644
--- a/src/tests/dejagnu/configure.in
+++ b/src/tests/dejagnu/configure.in
@@ -4,6 +4,7 @@ AC_PROG_INSTALL
AC_CHECK_PROG(RUNTEST,runtest,runtest)
AC_RETSIGTYPE
CHECK_SIGNALS
+KRB5_RUN_FLAGS
KRB5_LIBRARIES
V5_USE_SHARED_LIB
V5_AC_OUTPUT_MAKEFILE