X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=cli%2Fcli-diff-images.script;h=27327d4340b7f081aa053743099a358a43de5d0a;hp=90d27cc198f9126e6c5aee00ce681fc0a48ad973;hb=6497cf7ca42b69e3172c07a5151e1cbf475e8c17;hpb=8956eb531059e5f3012db55bede18b44638fa23a diff --git a/cli/cli-diff-images.script b/cli/cli-diff-images.script index 90d27cc..27327d4 100644 --- a/cli/cli-diff-images.script +++ b/cli/cli-diff-images.script @@ -1,18 +1,8 @@ -# Make a directory for the output images - -rm_and_mkdir ./tri-out - -# Generate images for every frame (only 1) of a trace - -apitrace dump-images --call-nos=no -o ./tri-out/tri tri.trace - -# Compare the result of "apitrace dump-images" with our reference - -apitrace diff-images -v ./tri-ref ./tri-out +apitrace diff-images --verbose images/white-1x1/ images/white-1x1/ # Ensure that the "apitrace diff-images" actually did something. This # is important since if it couldn't find images in one directory or # the other then it would just silently return 0 and this test would # incorrectly pass. -expect "Comparing ./tri-ref/tri0000000000.png and ./tri-out/tri0000000000.png ... MATCH\n" +expect "Comparing images/white-1x1/0.png and images/white-1x1/0.png ... MATCH\n"