Files
dockerfiles/tests/Makefile
T
2019-07-26 15:26:32 -07:00

16 lines
320 B
Makefile

HOSTNAME := $(shell hostname -f)
SUBDIR = $(shell ls -d */)
test_units := $(patsubst %/,%,$(SUBDIR))
all:
@echo "use 'make tests' to run all tests'"
@echo "use 'make TEST' to run individual test: ${test_units}"
.PHONY: $(test_units)
$(test_units):
cd $@; bats -t $@.bats
.NOTPARALLEL: tests
tests: $(test_units)