]> git.cworth.org Git - apitrace-tests/blob - cli/cli-diff-images-mismatch.script
995b7e515235d7dabcd4217a6742cc5bc1f6166c
[apitrace-tests] / cli / cli-diff-images-mismatch.script
1 # The first two steps are just as in cli-diff-images. Dump images from
2 # a trace into an empty directory.
3
4 rm_and_mkdir ./tri-out
5 apitrace dump-images --call-nos=no -o ./tri-out/tri tri.trace
6
7 # Compare the dumped image with a doctored image to provoke a failure.
8 # The EXPECT_FAILURE attribute causes the test driver to look for a
9 # non-zero return value from apitrace and fail the test if it is not
10 # seen.
11
12 EXPECT_FAILURE: apitrace diff-images -v ./tri-ref-mismatch ./tri-out
13
14 # In addition to getting the return value indicating an error, let's
15 # also require that "apitrace diff-images" gave us the output we
16 # expect.
17
18 expect "Comparing ./tri-ref-mismatch/tri0000000000.png and ./tri-out/tri0000000000.png ... MISMATCH\n"