X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=cli%2Fcli-trim-single-swapbuffers.script;fp=cli%2Fcli-trim-single-swapbuffers.script;h=e653d49f3e5058eb0e514c23cc36e2342d9387ce;hp=0000000000000000000000000000000000000000;hb=5efeef24814e1744e3c4f3109f82e700576439ab;hpb=0ba9c4e22bc917a666b8762b734884e72c142ccf diff --git a/cli/cli-trim-single-swapbuffers.script b/cli/cli-trim-single-swapbuffers.script new file mode 100644 index 0000000..e653d49 --- /dev/null +++ b/cli/cli-trim-single-swapbuffers.script @@ -0,0 +1,15 @@ +# First, trim the trace to the final glxSwapBuffers call + +apitrace trim --auto --calls=27 tri.trace + +# Then dump the image and compare to our reference + +rm_and_mkdir ./tri-out +apitrace dump-images --call-nos=no -o ./tri-out/tri tri-trim.trace +apitrace diff-images -v ./tri-ref ./tri-out + +# In addition to getting the return value indicating no error, let's +# also require that "apitrace diff-images" gave us the output we +# expect. + +expect "Comparing ./tri-ref/tri0000000000.png and ./tri-out/tri0000000000.png ... MATCH\n"