1 # This file is part of secnet.
2 # See LICENCE and this file CREDITS for full list of copyright holders.
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 # There is NO WARRANTY.
8 &TESTSCRIPTS ?= $(wildcard &^/t-[a-z]*[0-9a-z])
9 ifneq ($(OLD_SECNET_DIR),)
10 &TESTSCRIPTS += $(wildcard &^/t-C*[0-9a-z])
13 &TESTNAMES := $(patsubst t-%,%,$(notdir $(&TESTSCRIPTS)))
15 &DEPS += $(src)/test-common.tcl
17 &DEPS += $(src)/test-common.sd.mk
20 &check-real: $(foreach t,$(&TESTNAMES),&d-$t/ok)
26 &d-%/ok: &^/t-% $(&DEPS)
27 $(CHECK_SILENT) rm -rf &d-$*; mkdir &d-$*
28 $(CHECK_SILENT) export SECNET_TEST_BUILDDIR=$(topbuilddir); \
29 export PYTHONBYTECODEBASE=/dev/null; \
31 &/t-$* >$(topbuilddir)/&/d-$*/log 2>&\&1 \
32 || { cat $(topbuilddir)/&/d-$*/log >&\&2; false; }
33 $(CHECK_SILENT) printf "&/$* "
34 $(CHECK_SILENT) touch $@