Home | History | Annotate | Download | only in tests

Lines Matching refs:json

73 # - writing json summary into $2/$OUTPUT_ACTUAL_SUBDIR/json-summary.txt
84 JSON_SUMMARY_FILE="$ACTUAL_OUTPUT_DIR/json-summary.txt"
124 # Create input dir (at path $1) with expectations (both image and json)
138 JSON_DIR=$INPUTS_DIR/json
145 # Run GM again to read in those images and write them out as a JSON summary.
147 --writeJsonSummaryPath $JSON_DIR/identical-bytes.json
157 --writeJsonSummaryPath $JSON_DIR/identical-pixels.json
165 --writeJsonSummaryPath $JSON_DIR/different-pixels.json
167 # Create another JSON expectations file which is identical to
168 # different-pixels.json, but in which the *first* ignore-failure is changed
172 sed -e "0,/$OLD/{s/$OLD/$NEW/}" $JSON_DIR/different-pixels.json \
173 >$JSON_DIR/different-pixels-ignore-some-failures.json
181 --writeJsonSummaryPath $JSON_DIR/different-pixels-no-hierarchy.json
204 gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/identical-bytes.json" "$GM_OUTPUTS/compared-against-identical-bytes-json"
208 gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/identical-pixels.json" "$GM_OUTPUTS/compared-against-identical-pixels-json"
212 gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels.json" "$GM_OUTPUTS/compared-against-different-pixels-json"
217 gm_test "--verbose --hierarchy --match selftest --ignoreFailuresFile $GM_IGNORE_FAILURES_FILE $CONFIGS -r $GM_INPUTS/json/different-pixels.json" "$GM_OUTPUTS/ignoring-one-test"
221 gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels-ignore-some-failures.json" "$GM_OUTPUTS/ignoring-some-failures"
235 gm_test "--verbose --hierarchy --match selftest1 $CONFIGS pdf -r $GM_INPUTS/json/identical-bytes.json" "$GM_OUTPUTS/add-config-pdf"
237 # Test what happens if run without -r (no expected-results.json to compare
242 gm_test "--pipe --simulatePipePlaybackFailure --verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/identical-pixels.json" "$GM_OUTPUTS/pipe-playback-failure"
248 gm_test "--ignoreErrorTypes ExpectationsMismatch NoGpuContext --verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels.json" "$GM_OUTPUTS/ignore-expectations-mismatch"
251 gm_test "--verbose --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels-no-hierarchy.json" "$GM_OUTPUTS/no-hierarchy"
255 gm_test "--verbose --writeChecksumBasedFilenames --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels-no-hierarchy.json" "$GM_OUTPUTS/checksum-based-filenames"
258 PASSING_CASES="compared-against-identical-bytes-json compared-against-identical-pixels-json"
259 FAILING_CASES="compared-against-different-pixels-json"
261 assert_passes "python gm/display_json_results.py $GM_OUTPUTS/$CASE/$OUTPUT_EXPECTED_SUBDIR/json-summary.txt"
264 assert_fails "python gm/display_json_results.py $GM_OUTPUTS/$CASE/$OUTPUT_EXPECTED_SUBDIR/json-summary.txt"