summaryrefslogtreecommitdiff
path: root/test/generate_refs.sh
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-25 13:05:19 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-25 13:08:17 +0100
commitce3806510f8a20621f3daf7bd1afb18811fa1e92 (patch)
tree9ff4ba4ef6744bb146e924d81ed03ed6a1d8c91e /test/generate_refs.sh
parentffdfdf2fa99dab340e03884267218b134d68265b (diff)
downloadcairo-ce3806510f8a20621f3daf7bd1afb18811fa1e92.tar.gz
test: Add a Makefile.refs generator
Generates the lexicographical Makefile.refs based on the *.ref.png and *.xfail.png checked into git. This might be nice to automate as a Makefile target. But for now play safe and do the updates manually. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/generate_refs.sh')
-rwxr-xr-xtest/generate_refs.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/generate_refs.sh b/test/generate_refs.sh
new file mode 100755
index 000000000..518836b17
--- /dev/null
+++ b/test/generate_refs.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# A very simple script. But sufficient, hopefully, for our current purposes.
+
+cat <<EOF
+# Note REFERENCE_IMAGES must be in lexicographical order.
+# Use generate_refs.sh on a git checkout with updated images.
+REFERENCE_IMAGES = \\
+EOF
+
+git ls-files '*.ref.png' '*.xfail.png' | sed 's/\(.*\)/ \1 \\/'
+echo ' $(NULL)'