From: Simon McVittie Date: Mon, 4 Sep 2023 09:28:58 +0000 (+0100) Subject: d/log-reftests.py: Log uuencoded variant GSK reftest renderings too X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=00fdcd3fa9a5cc8bc339404109fd33bc089b75b7;p=gtk4.git d/log-reftests.py: Log uuencoded variant GSK reftest renderings too The variant GSK reftest renderings (flipped, repeated, etc.) might fail differently, in which case we will want to look at their outputs. --- diff --git a/debian/log-reftests.py b/debian/log-reftests.py index eefb1cbdfb..382f495c34 100755 --- a/debian/log-reftests.py +++ b/debian/log-reftests.py @@ -18,22 +18,29 @@ if __name__ == '__main__': 'gl', 'x11', ), ): - diff = (outputs / (node.stem + '.diff.png')) + for tail in ('', '-flipped', '-repeated', '-rotated', '-masked'): + diff = (outputs / (node.stem + tail + '.diff.png')) - if diff.exists(): - ref = Path('testsuite', 'gsk', 'compare', node.stem + '.png') - out = (outputs / (node.stem + '.out.png')) + if diff.exists(): + if tail: + ref = outputs / (node.stem + tail + '.ref.png') + else: + ref = Path( + 'testsuite', 'gsk', 'compare', node.stem + '.png', + ) - for path in (ref, out, diff): - if path.exists(): - print('begin-base64 644 %s' % path) - sys.stdout.flush() - with open(path, 'rb') as reader: - base64.encode(reader, sys.stdout.buffer) - print('====') - print('') + out = (outputs / (node.stem + tail + '.out.png')) - print('') + for path in (ref, out, diff): + if path.exists(): + print('begin-base64 644 %s' % path) + sys.stdout.flush() + with open(path, 'rb') as reader: + base64.encode(reader, sys.stdout.buffer) + print('====') + print('') + + print('') for ui in Path('testsuite', 'reftests').glob('*.ui'): for outputs in (