Files
heimdal/tests/bin/Makefile.am
Nicolas Williams 3021258f60 Add tests/bin/intr
This utility, inspired by the old SunOS 4.x intr(8) utility, will be
used to start daemons with --detach and a timeout, like this:

    intr -t 5 kdc --detach || { echo failed to start kdc; exit 1 }

This will allow tests to stop having to sleep poll for "started" output
from the daemons they start, allowing them to run faster and to impose a
reasonable timeout on daemon startup.

The default timeout is 3 seconds.
2015-03-24 11:50:00 -05:00

31 lines
674 B
Makefile

include $(top_srcdir)/Makefile.am.common
noinst_SCRIPTS = setup-env
noinst_PROGRAMS = intr
nodist_intr_SOURCES = intr.c
CHECK_LOCAL = no-check-local
intr_LDADD = $(LIB_roken)
do_subst = \
top_srcdir="$$(cd ${top_srcdir} && pwd)" ; \
top_builddir="$$(cd ${top_builddir} && pwd)" ; \
sed $(do_dlopen) \
-e "s,[@]EGREP[@],$(EGREP),g" \
-e "s,[@]top_srcdir[@],$${top_srcdir},g" \
-e "s,[@]top_builddir[@],$${top_builddir},g" \
-e "s,[@]NO_AFS[@],$(NO_AFS),g"
setup-env: setup-env.in Makefile
$(do_subst) < $(srcdir)/setup-env.in > setup-env.tmp
chmod +x setup-env.tmp
mv setup-env.tmp setup-env
EXTRA_DIST = setup-env.in
CLEANFILES = setup-env setup-env.tmp