diff options
author | Uli Schlachter <psychon@znc.in> | 2023-01-02 09:04:16 +0000 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2023-01-02 09:04:16 +0000 |
commit | 3cc15cb40eb2d7e064d310c59853f362511666fb (patch) | |
tree | 0746d2e4495a883e3d5a0355a05deaa9015a8601 /test | |
parent | d9008ff8c1847217ae3d6557dc8e47aa24560f30 (diff) | |
parent | 997870601bc2a1a8849f51c1055fc0c1f4d075ca (diff) | |
download | cairo-3cc15cb40eb2d7e064d310c59853f362511666fb.tar.gz |
Merge branch 'duplicate-ref-images' into 'master'
Remove duplicate reference images & run check-refs.sh in CI to ensure that no new duplicate images are added
See merge request cairo/cairo!384
Diffstat (limited to 'test')
24 files changed, 6 insertions, 0 deletions
diff --git a/test/check-refs.sh b/test/check-refs.sh index 81ef81b35..e2e8a1a2a 100755 --- a/test/check-refs.sh +++ b/test/check-refs.sh @@ -9,6 +9,8 @@ if [ ! -e "${pdiff}" ]; then exit 128 fi +exit_code=0 + for file in *.ref.png; do test=$(echo $file | cut -d'.' -f1) target=$(echo $file | cut -d'.' -f2) @@ -48,6 +50,7 @@ for file in *.ref.png; do if [ -e $ref ]; then if cmp --silent "$ref" "$file" ; then printf "redundant: %s and %s are byte-by-byte identical files\n" $file $ref + exit_code=1 else # Run perceptualdiff with minimum threshold pdiff_output=$($pdiff $ref $file -threshold 1) @@ -55,9 +58,12 @@ for file in *.ref.png; do notes=$(echo "${pdiff_output#*: }" | tail -n 1) if [ "$result" = "PASS" ] && [ "$notes" = "Images are binary identical" ]; then printf "redundant: %s and %s are pixel equivalent images\n" $file $ref + exit_code=1 notes="" fi fi fi done + +exit $exit_code diff --git a/test/reference/arc-direction.pdf.ref.png b/test/reference/arc-direction.pdf.ref.png Binary files differdeleted file mode 100644 index 7b14d71a2..000000000 --- a/test/reference/arc-direction.pdf.ref.png +++ /dev/null diff --git a/test/reference/big-little-triangle.traps.argb32.ref.png b/test/reference/big-little-triangle.traps.argb32.ref.png Binary files differdeleted file mode 100644 index 5308ccedb..000000000 --- a/test/reference/big-little-triangle.traps.argb32.ref.png +++ /dev/null diff --git a/test/reference/big-little-triangle.traps.rgb24.ref.png b/test/reference/big-little-triangle.traps.rgb24.ref.png Binary files differdeleted file mode 100644 index 9e4773b2d..000000000 --- a/test/reference/big-little-triangle.traps.rgb24.ref.png +++ /dev/null diff --git a/test/reference/clip-fill-rule.pdf.rgb24.ref.png b/test/reference/clip-fill-rule.pdf.rgb24.ref.png Binary files differdeleted file mode 100644 index a7acc4fa4..000000000 --- a/test/reference/clip-fill-rule.pdf.rgb24.ref.png +++ /dev/null diff --git a/test/reference/dash-offset-negative.pdf.ref.png b/test/reference/dash-offset-negative.pdf.ref.png Binary files differdeleted file mode 100644 index df22d08b2..000000000 --- a/test/reference/dash-offset-negative.pdf.ref.png +++ /dev/null diff --git a/test/reference/font-matrix-translation.traps.ref.png b/test/reference/font-matrix-translation.traps.ref.png Binary files differdeleted file mode 100644 index a4a108206..000000000 --- a/test/reference/font-matrix-translation.traps.ref.png +++ /dev/null diff --git a/test/reference/ft-show-glyphs-positioning.traps.ref.png b/test/reference/ft-show-glyphs-positioning.traps.ref.png Binary files differdeleted file mode 100644 index af6dcaf95..000000000 --- a/test/reference/ft-show-glyphs-positioning.traps.ref.png +++ /dev/null diff --git a/test/reference/ft-show-glyphs-table.traps.ref.png b/test/reference/ft-show-glyphs-table.traps.ref.png Binary files differdeleted file mode 100644 index ed6912489..000000000 --- a/test/reference/ft-show-glyphs-table.traps.ref.png +++ /dev/null diff --git a/test/reference/glyph-cache-pressure.traps.ref.png b/test/reference/glyph-cache-pressure.traps.ref.png Binary files differdeleted file mode 100644 index a6e1b061f..000000000 --- a/test/reference/glyph-cache-pressure.traps.ref.png +++ /dev/null diff --git a/test/reference/inverse-text.traps.ref.png b/test/reference/inverse-text.traps.ref.png Binary files differdeleted file mode 100644 index b7bbb972f..000000000 --- a/test/reference/inverse-text.traps.ref.png +++ /dev/null diff --git a/test/reference/line-width-large-overlap-offset.ps.ref.png b/test/reference/line-width-large-overlap-offset.ps.ref.png Binary files differdeleted file mode 100644 index 3c3464bed..000000000 --- a/test/reference/line-width-large-overlap-offset.ps.ref.png +++ /dev/null diff --git a/test/reference/partial-clip-text-right.traps.ref.png b/test/reference/partial-clip-text-right.traps.ref.png Binary files differdeleted file mode 100644 index 2fbdca038..000000000 --- a/test/reference/partial-clip-text-right.traps.ref.png +++ /dev/null diff --git a/test/reference/partial-clip-text-top.traps.ref.png b/test/reference/partial-clip-text-top.traps.ref.png Binary files differdeleted file mode 100644 index d18475be3..000000000 --- a/test/reference/partial-clip-text-top.traps.ref.png +++ /dev/null diff --git a/test/reference/record-fill-alpha.pdf.ref.png b/test/reference/record-fill-alpha.pdf.ref.png Binary files differdeleted file mode 100644 index 8f72f68f4..000000000 --- a/test/reference/record-fill-alpha.pdf.ref.png +++ /dev/null diff --git a/test/reference/record-mesh.ps.ref.png b/test/reference/record-mesh.ps.ref.png Binary files differdeleted file mode 100644 index 015553650..000000000 --- a/test/reference/record-mesh.ps.ref.png +++ /dev/null diff --git a/test/reference/record90-fill-alpha.pdf.ref.png b/test/reference/record90-fill-alpha.pdf.ref.png Binary files differdeleted file mode 100644 index 167d7be65..000000000 --- a/test/reference/record90-fill-alpha.pdf.ref.png +++ /dev/null diff --git a/test/reference/record90-paint-alpha-clip.quartz.ref.png b/test/reference/record90-paint-alpha-clip.quartz.ref.png Binary files differdeleted file mode 100644 index b7703d47d..000000000 --- a/test/reference/record90-paint-alpha-clip.quartz.ref.png +++ /dev/null diff --git a/test/reference/recordflip-whole-fill-alpha.quartz.ref.png b/test/reference/recordflip-whole-fill-alpha.quartz.ref.png Binary files differdeleted file mode 100644 index 69035ef5f..000000000 --- a/test/reference/recordflip-whole-fill-alpha.quartz.ref.png +++ /dev/null diff --git a/test/reference/recordflip-whole-paint-alpha-clip-mask.quartz.ref.png b/test/reference/recordflip-whole-paint-alpha-clip-mask.quartz.ref.png Binary files differdeleted file mode 100644 index 6f14ad3b4..000000000 --- a/test/reference/recordflip-whole-paint-alpha-clip-mask.quartz.ref.png +++ /dev/null diff --git a/test/reference/select-font-face.traps.ref.png b/test/reference/select-font-face.traps.ref.png Binary files differdeleted file mode 100644 index 1334a9a01..000000000 --- a/test/reference/select-font-face.traps.ref.png +++ /dev/null diff --git a/test/reference/show-glyphs-advance.traps.ref.png b/test/reference/show-glyphs-advance.traps.ref.png Binary files differdeleted file mode 100644 index e65ad05d5..000000000 --- a/test/reference/show-glyphs-advance.traps.ref.png +++ /dev/null diff --git a/test/reference/show-text-current-point.traps.ref.png b/test/reference/show-text-current-point.traps.ref.png Binary files differdeleted file mode 100644 index d60d4ac01..000000000 --- a/test/reference/show-text-current-point.traps.ref.png +++ /dev/null diff --git a/test/reference/text-antialias-gray.traps.ref.png b/test/reference/text-antialias-gray.traps.ref.png Binary files differdeleted file mode 100644 index 06b805eaa..000000000 --- a/test/reference/text-antialias-gray.traps.ref.png +++ /dev/null |