]> git.cworth.org Git - apitrace-tests/blob - cli/cli-trim-single-swapbuffers.script
Add a test to ensure "apitrace trim" performs proper dependency checking
[apitrace-tests] / cli / cli-trim-single-swapbuffers.script
1 # First, trim the trace to the final glxSwapBuffers call
2
3 apitrace trim --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 -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/tri0000000027.png and ./tri-out/tri0000000027.png ... MATCH\n"