mirror of
https://github.com/tmux/tmux.git
synced 2026-07-03 10:22:29 +00:00
34 lines
610 B
Makefile
34 lines
610 B
Makefile
TESTS!= echo *.sh
|
|
|
|
.PHONY: all $(TESTS)
|
|
.NOTPARALLEL: all $(TESTS)
|
|
|
|
all:
|
|
@failed=0; failures=; \
|
|
for test in $(TESTS); do \
|
|
printf '%-40s ' "$$test"; \
|
|
start=$$(date +%s); \
|
|
if sh "$$test" >/dev/null 2>&1; then \
|
|
end=$$(date +%s); \
|
|
echo "PASS ($$((end - start))s)"; \
|
|
else \
|
|
end=$$(date +%s); \
|
|
echo "FAIL ($$((end - start))s)"; \
|
|
failed=1; \
|
|
failures="$$failures $$test"; \
|
|
fi; \
|
|
sleep 1; \
|
|
done; \
|
|
if [ "$$failed" -ne 0 ]; then \
|
|
echo; \
|
|
echo "failures:"; \
|
|
for test in $$failures; do \
|
|
echo " $$test"; \
|
|
done; \
|
|
fi; \
|
|
exit $$failed
|
|
|
|
$(TESTS):
|
|
sh $@
|
|
sleep 1
|