chiark / gitweb /
test-common: Use $(wildcard ) rather than $(shell echo )
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 Dec 2019 01:18:26 +0000 (01:18 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:53 +0000 (21:56 +0000)
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 <ijackson@chiark.greenend.org.uk>
test-common.sd.mk

index 023e41c7976dca43cffcaadc33563f565b15b2b1..904536d040f1a3c2d8bdd9607722b3ca35b6c6e0 100644 (file)
@@ -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