1 # First, trim the trace to the final glxSwapBuffers call
3 apitrace trim --calls=27 tri.trace
5 # Then dump the image and compare to our reference
8 apitrace dump-images --call-nos=no -o ./tri-out/tri tri-trim.trace
9 apitrace diff-images -v ./tri-ref ./tri-out
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
15 expect "Comparing ./tri-ref/tri0000000000.png and ./tri-out/tri0000000000.png ... MATCH\n"