-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
23 lines (16 loc) · 707 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SHELL=/bin/bash
NS_TARGETS := $(subst tests/test_,,$(wildcard tests/test_*))
PROC_TARGETS := $(subst tests/test_,,$(foreach ns,$(NS_TARGETS),$(wildcard tests/test_$(ns)/*)))
all: $(NS_TARGETS)
.list:
$(info Tests for namespaces: $(NS_TARGETS))
$(info Tests for processes: $(PROC_TARGETS))
%: tests/test_%
@echo "::group::Running tests for namespace: $@"; \
for procdir in $</*; do \
bash tests/conda/run_test.sh $$procdir VERBOSE=$(VERBOSE) FORCE=$(FORCE); \
done || exit 1; \
echo "::endgroup::"
$(PROC_TARGETS): %: tests/test_%
@bash tests/conda/run_test.sh $< VERBOSE=$(VERBOSE) FORCE=$(FORCE);
.PHONY: all .list