mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
grep was returning non-zero exit code if it did NOT find the error marker, and zero if it did.
13 lines
290 B
Makefile
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
|