firejail/test/Makefile
Kelvin M. Klann f9cc7b24eb build: move cleaning of test files to test/Makefile
Move them from the distclean target in the root Makefile.

Related commits:

* a1ff0c3fd ("testing", 2026-01-16)
* 2f6afc99d ("gcov testing", 2026-01-16)
2026-01-17 02:14:51 -03:00

29 lines
710 B
Makefile

.SUFFIXES:
ROOT = ..
-include $(ROOT)/config.mk
RM ?= rm -f
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) "$$test/$$test.log"; done
$(RM) -r environment/-testdir
$(RM) environment/index.html*
$(RM) environment/logfile*
$(RM) environment/wget-log*
$(RM) test/chroot/unchroot
$(RM) test/fcopy/src/dircopy.exp
$(RM) test/fnetfilter/outfile
$(RM) test/fnettrace/index.html
$(RM) utils/firejail-test-file*
$(RM) utils/index.html*
$(RM) utils/lstesting
$(RM) utils/wget-log
cd compile && (./compile.sh --clean || true)