]> git.cworth.org Git - apitrace-tests/blob - cli/cli-trim-single-swapbuffers.script
cli: Don't rely on image generation for diff-image tests.
[apitrace-tests] / cli / cli-trim-single-swapbuffers.script
1 # First, trim the trace to the final glxSwapBuffers call
2
3 apitrace trim --auto --calls=27 tri.trace
4
5 # Then dump the image and compare to our reference
6
7 rm_and_mkdir ./tri-out
8 apitrace dump-images --call-nos=no -o ./tri-out/tri tri-trim.trace
9 apitrace diff-images -v ./tri-ref ./tri-out
10
11 # In addition to getting the return value indicating no error, let's
12 # also require that "apitrace diff-images" gave us the output we
13 # expect.
14
15 expect "Comparing ./tri-ref/tri0000000000.png and ./tri-out/tri0000000000.png ... MATCH\n"