4 TESTSCRIPTS ?= $(shell echo $(srcdir)/t-*[0-9a-z])
5 TESTNAMES := $(patsubst t-%,%,$(notdir $(TESTSCRIPTS)))
7 DEPS += $(topdir)/test-common.tcl
8 DEPS += $(topdir)/common.make
9 DEPS += $(topdir)/test-common.make
14 export PYTHONBYTECODEBASE=/dev/null
18 check-real: $(foreach t,$(TESTNAMES),d-$t/ok)
20 d-%/ok: $(srcdir)/t-% $(DEPS)
21 @rm -rf d-$*; mkdir d-$*
22 @export SECNET_TEST_BUILDDIR=$(topbuilddir); \
24 $(TESTDIR)/t-$* >$(topbuilddir)/$(TESTDIR)/d-$*/log 2>&1 \
25 || { cat $(topbuilddir)/$(TESTDIR)/d-$*/log >&2; false; }
26 @printf "$(TESTDIR)/$* "