Skip to content

Commit 202efd7

Browse files
committed
Added Makefile as a convenient way to run any or all unit tests.
1 parent 466bb96 commit 202efd7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

meta/test/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MAKEFILE_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
2+
3+
DIRS := $(wildcard $(MAKEFILE_DIR)/*/)
4+
TARGETS := $(notdir $(patsubst %/,%,$(DIRS)))
5+
6+
.PHONY: all $(TARGETS)
7+
8+
all: $(TARGETS)
9+
10+
$(TARGETS):
11+
@cd $(MAKEFILE_DIR)/$@ && ./test.sh

0 commit comments

Comments
 (0)