]> git.cworth.org Git - apitrace-tests/blob - cli/cli-diff-images.script
cli: Use new --call-nos=no call to "apitrace dump-images" for consistent results
[apitrace-tests] / cli / cli-diff-images.script
1 # Make a directory for the output images
2
3 rm_and_mkdir ./tri-out
4
5 # Generate images for every frame (only 1) of a trace
6
7 apitrace dump-images --call-nos=no -o ./tri-out/tri tri.trace
8
9 # Compare the result of "apitrace dump-images" with our reference
10
11 apitrace diff-images -v ./tri-ref ./tri-out
12
13 # Ensure that the "apitrace diff-images" actually did something.  This
14 # is important since if it couldn't find images in one directory or
15 # the other then it would just silently return 0 and this test would
16 # incorrectly pass.
17
18 expect "Comparing ./tri-ref/tri0000000000.png and ./tri-out/tri0000000000.png ... MATCH\n"