From: Ian Jackson Date: Thu, 5 Dec 2019 01:18:26 +0000 (+0000) Subject: test-common: Use $(wildcard ) rather than $(shell echo ) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=e7897e7712f036003984c7e9c52697a82a04ab5c;p=secnet.git test-common: Use $(wildcard ) rather than $(shell echo ) This is probably a bit faster, but more relevantly it would DTRT if for some reason there were no applicable tests. Which is going to happen in a moment, when we add some machinery before the applicable test. Signed-off-by: Ian Jackson --- diff --git a/test-common.sd.mk b/test-common.sd.mk index 023e41c..904536d 100644 --- a/test-common.sd.mk +++ b/test-common.sd.mk @@ -1,7 +1,7 @@ include common.make -&TESTSCRIPTS ?= $(shell echo &^/t-*[0-9a-z]) +&TESTSCRIPTS ?= $(wildcard &^/t-*[0-9a-z]) &TESTNAMES := $(patsubst t-%,%,$(notdir $(&TESTSCRIPTS))) &DEPS += $(src)/test-common.tcl