Files
mixer-tools/Makefile.bats
T
Tudor Marcu 0a87d8cb91 Add BAT tests for mixer command-line testing
These tests should be reporting on the structure and correctness of mixer
and its user interface. Due to them running very slowly on the Travis CI
environment, they are not run by default, but can be run locally with
make batcheck.

This patch also introduces a docker container to do the build, so we do not
have to worry about running this in different environments such as Travis
CI. The tests are thus confined to a strict, well-known workspace,
and we can avoid many dependency problems.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2018-02-16 16:06:36 -08:00

19 lines
490 B
Makefile

SUBMAKEFILES := $(shell find bat/tests/ -name Makefile)
DIRS2RUNMAKECHECK := $(addprefix checkdir-,${SUBMAKEFILES})
DIRS2RUNMAKECLEAN := $(addprefix clean-,${SUBMAKEFILES})
batcheck: ${DIRS2RUNMAKECHECK}
${DIRS2RUNMAKECHECK}: checkdir-%:
$(MAKE) -C $(dir $(subst checkdir-,,$@)) check
batclean: $(DIRS2RUNMAKECLEAN)
${DIRS2RUNMAKECLEAN}: clean-%:
$(MAKE) -C $(dir $(subst clean-,,$@)) clean
.PHONY: batcheck
.PHONY: batclean
.PHONY: ${DIRS2RUNMAKECHECK}
.PHONY: ${DIRS2RUNMAKECLEAN}