include mk/header.mk SHARNESS_$(d) = $(d)/lib/sharness/sharness.sh T_$(d) = $(sort $(wildcard $(d)/t[0-9][0-9][0-9][0-9]-*.sh)) DEPS_$(d) := test/bin/random test/bin/multihash test/bin/pollEndpoint \ test/bin/iptb test/bin/go-sleep test/bin/random-files \ test/bin/go-timeout test/bin/hang-fds test/bin/ma-pipe-unidir DEPS_$(d) += cmd/ipfs/ipfs DEPS_$(d) += $(d)/clean-test-results DEPS_$(d) += $(SHARNESS_$(d)) export MAKE_SKIP_PATH=1 $(T_$(d)): $$(DEPS_$(d)) # use second expansion so coverage can inject dependency @echo "*** $@ ***" @(cd $(@D) && ./$(@F)) 2>&1 .PHONY: $(T_$(d)) $(d)/aggregate: $(T_$(d)) @echo "*** $@ ***" @(cd $(@D) && ./lib/test-aggregate-results.sh) .PHONY: $(d)/aggregate $(d)/clean-test-results: rm -rf $(@D)/test-results .PHONY: $(d)/clean-test-results CLEAN += $(wildcard $(d)/test-results/*) $(SHARNESS_$(d)): $(d) ALWAYS @clonedir=$(dir $(@D)) $