mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
test: Tweak the results summary
Fix up the rules for the new directory structure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
8a65d8e2de
commit
c5b8cfab87
1 changed files with 9 additions and 7 deletions
|
|
@ -231,21 +231,22 @@ user-data
|
|||
# A target to summarise the failures
|
||||
check-summary:
|
||||
@FAILED_TESTS=""; \
|
||||
for t in $(test_sources:.c=.log); do \
|
||||
for t in output/*.log; do \
|
||||
if grep -e '\<FAIL\>' $$t >/dev/null 2>&1; then \
|
||||
FAILED_TESTS="$$FAILED_TESTS $${t%.log}"; \
|
||||
FAILED_TESTS="$$FAILED_TESTS $$t"; \
|
||||
fi; \
|
||||
done; \
|
||||
if test -n "$$FAILED_TESTS"; then \
|
||||
echo "Failed tests:"; \
|
||||
surfaces=""; \
|
||||
for t in $$FAILED_TESTS; do \
|
||||
echo -n " $$t: "; \
|
||||
grep -e '\<FAIL\>' $$t.log | sed -e 's/.*TARGET: \([^ ]*\).*/\1/' | sort | uniq | tr '\n' ' '; \
|
||||
name="$${t##output/}"; name="$${name%.log}"; \
|
||||
echo -n " $$name: "; \
|
||||
grep -e '\<FAIL\>' $$t | sed -e 's/.*TARGET: \([^ ]*\).*/\1/' | sort | uniq | tr '\n' ' '; \
|
||||
echo; \
|
||||
for s in `grep -e '\<FAIL\>' $$t.log | sed -e 's/.*TARGET: \([^ ]*\).*/\1/' | sort | uniq`; do \
|
||||
for s in `grep -e '\<FAIL\>' $$t | sed -e 's/.*TARGET: \([^ ]*\).*/\1/' | sort | uniq`; do \
|
||||
ss=`echo $$s | tr '-' '_'`; \
|
||||
tt=`echo $$t | tr '-' '_'`; \
|
||||
tt=`echo $$name | tr '-' '_'`; \
|
||||
eval $$ss=\""$${!ss} $$tt"\"; \
|
||||
echo $$surfaces | grep $$ss >/dev/null || surfaces="$$surfaces $$ss"; \
|
||||
done; \
|
||||
|
|
@ -454,7 +455,8 @@ results.tar:
|
|||
for i in output/*.fail.png ; do \
|
||||
testname=$${i#output/} ; \
|
||||
testname=$${testname%%.*} ; \
|
||||
tar uf $@ $${testname}*.ref.png $${i%fail.png}out.png $${i%fail.png}diff.png ; \
|
||||
echo tar uf $@ reference/$${testname}*.ref.png $${i%fail.png}out.png $${i%fail.png}diff.png ; \
|
||||
tar uf $@ reference/$${testname}*.ref.png $${i%fail.png}out.png $${i%fail.png}diff.png ; \
|
||||
done
|
||||
|
||||
results.tar.gz: results.tar
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue