TESTNAMES := $(patsubst t-%,%,$(notdir $(TESTSCRIPTS)))
DEPS += $(topdir)/test-common.tcl
+DEPS += $(topdir)/common.make
+DEPS += $(topdir)/test-common.make
+DEPS += Makefile
TARGETS += check
+export PYTHONBYTECODEBASE=/dev/null
+
all: $(TARGETS)
check-real: $(foreach t,$(TESTNAMES),d-$t/ok)
d-%/ok: $(srcdir)/t-% $(DEPS)
@rm -rf d-$*; mkdir d-$*
- export STEST_BUILDDIR=$(topbuilddir); \
- cd $(topdir) && stest/t-$* >$(topbuilddir)/stest/d-$*/log 2>&1
- @printf "$* "
+ @export SECNET_TEST_BUILDDIR=$(topbuilddir); \
+ cd $(topdir) && \
+ $(TESTDIR)/t-$* >$(topbuilddir)/$(TESTDIR)/d-$*/log 2>&1 \
+ || { cat $(topbuilddir)/$(TESTDIR)/d-$*/log >&2; false; }
+ @printf "$(TESTDIR)/$* "
@touch $@
clean: