X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=cli%2Fcli-diff-images-mismatch.script;h=15446ad7818717c5787519c096f0495757023cbf;hp=995b7e515235d7dabcd4217a6742cc5bc1f6166c;hb=6497cf7ca42b69e3172c07a5151e1cbf475e8c17;hpb=8956eb531059e5f3012db55bede18b44638fa23a diff --git a/cli/cli-diff-images-mismatch.script b/cli/cli-diff-images-mismatch.script index 995b7e5..15446ad 100644 --- a/cli/cli-diff-images-mismatch.script +++ b/cli/cli-diff-images-mismatch.script @@ -1,18 +1,7 @@ -# The first two steps are just as in cli-diff-images. Dump images from -# a trace into an empty directory. - -rm_and_mkdir ./tri-out -apitrace dump-images --call-nos=no -o ./tri-out/tri tri.trace - -# Compare the dumped image with a doctored image to provoke a failure. -# The EXPECT_FAILURE attribute causes the test driver to look for a -# non-zero return value from apitrace and fail the test if it is not -# seen. - -EXPECT_FAILURE: apitrace diff-images -v ./tri-ref-mismatch ./tri-out +EXPECT_FAILURE: apitrace diff-images --verbose images/white-1x1/ images/black-1x1/ # In addition to getting the return value indicating an error, let's # also require that "apitrace diff-images" gave us the output we # expect. -expect "Comparing ./tri-ref-mismatch/tri0000000000.png and ./tri-out/tri0000000000.png ... MISMATCH\n" +expect "Comparing images/white-1x1/0.png and images/black-1x1/0.png ... MISMATCH\n"