firejail/test/Makefile
Kelvin M. Klann 5f27852906 build: remove unnecessary distclean targets
This also fixes the duplicate execution of the "clean" targets.
2023-07-20 05:03:47 -03:00

14 lines
303 B
Makefile

.SUFFIXES:
ROOT = ..
-include $(ROOT)/config.mk
TESTS=$(patsubst %/,%,$(wildcard */))
.PHONY: $(TESTS)
$(TESTS):
cd $@ && ./$@.sh 2>&1 | tee $@.log
cd $@ && grep -a TESTING $@.log && ! grep -a -q "TESTING ERROR" $@.log
.PHONY: clean
clean:
for test in $(TESTS); do rm -f "$$test/$$test.log"; done