+# This file is part of secnet.
+# See LICENCE and this file CREDITS for full list of copyright holders.
+# SPDX-License-Identifier: GPL-3.0-or-later
+# There is NO WARRANTY.
include common.make
-&TESTSCRIPTS ?= $(shell echo &^/t-*[0-9a-z])
+&TESTSCRIPTS ?= $(wildcard &^/t-[a-z]*[0-9a-z])
+ifneq ($(OLD_SECNET_DIR),)
+&TESTSCRIPTS += $(wildcard &^/t-C*[0-9a-z])
+endif
+
&TESTNAMES := $(patsubst t-%,%,$(notdir $(&TESTSCRIPTS)))
&DEPS += $(src)/test-common.tcl
&check-real: $(foreach t,$(&TESTNAMES),&d-$t/ok)
+RECHECK_RM += &d-*
+
CHECK_SILENT ?= @
&d-%/ok: &^/t-% $(&DEPS)