firejail/test/Makefile
netblue30 a3f01f68c7
Some checks are pending
Build-extra / build-gcc (push) Waiting to run
Build-extra / build-clang (push) Waiting to run
Build / build (push) Waiting to run
Check-C / scan-build (push) Waiting to run
Check-C / cppcheck (push) Waiting to run
Check-C / codeql-cpp (push) Waiting to run
Codespell / codespell (push) Waiting to run
Test / test-main (push) Waiting to run
Test / test-fs (push) Waiting to run
Test / test-environment (push) Waiting to run
Test / test-utils (push) Waiting to run
Test / test-network (push) Waiting to run
fixed make clean problem introduced by earlier commit
2026-07-15 19:31:32 -04:00

28 lines
664 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