From: Ian Jackson Date: Thu, 5 Dec 2019 01:18:26 +0000 (+0000) Subject: test-common: Use $(wildcard ) rather than $(shell echo ) X-Git-Tag: v0.6.0~55 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=31c89500dd7755b13880409d4edc441ff06ffd37;hp=ea91f2f6faafe6ea97921185fc583851873f8a24;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