firejail/test/Makefile
Reiner Herrmann 057f431b0a CI: fix wrong matching for test errors
grep was returning non-zero exit code if it did NOT find the
error marker, and zero if it did.
2022-07-30 10:48:33 +02:00

13 lines
290 B
Makefile

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
.PHONY: distclean
distclean: clean