gecko-dev/image/test/reftest/pngsuite-ancillary
L. David Baron 1e88f0f003 Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert
This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

Differential Revision: https://phabricator.services.mozilla.com/D2974

--HG--
extra : moz-landing-system : lando
2018-08-09 20:10:21 +00:00
..
ccwn2c08.html
ccwn2c08.png
ccwn3p08.html
ccwn3p08.png
cdfn2c08.html
cdfn2c08.png
cdhn2c08.html
cdhn2c08.png
cdsn2c08.html
cdsn2c08.png
cdun2c08.html
cdun2c08.png
ch1n3p04.html
ch1n3p04.png
ch2n3p08.html
ch2n3p08.png
cm0n0g04.html
cm0n0g04.png
cm7n0g04.html
cm7n0g04.png
cm9n0g04.html
cm9n0g04.png
cs3n2c16.html
cs3n2c16.png
cs3n3p08.html
cs3n3p08.png
cs5n2c08.html
cs5n2c08.png
cs5n3p08.html
cs5n3p08.png
cs8n2c08.html
cs8n2c08.png
cs8n3p08.html
cs8n3p08.png
ct0n0g04.html
ct0n0g04.png
ct1n0g04.html
ct1n0g04.png
ctzn0g04.html
ctzn0g04.png
qcms-asm-check.js
reftest.list