This directory performs stress testing of "apitrace trim". For each trace file in this directory the trim_stress.py test driver will perform the following operations: Given .trace: 1. Generate snapshots of original trace in ./-ref/, (this step is skipped if the -ref directory already exists. Simply delete this directory before "make test" to force new generation of reference images. 2. For each frame of the trace: 1. Use "apitrace trim" to trim .trace to a single-frame trace in -trim.trace 2. Generate a snapshot of the trimmed frame to ./-tmp-out/.png 3. Use "apitrace diff-images" to compare this one frame with the corresponding reference image in ./-ref. If the images differ the entire process is interrupted here. 4. Move the frame snapshot from ./-tmp-out to ./-out Note that you can also put traces in the sub-directory local and they will be tested as well. The difference is that those files will be ignored by git. This can be useful for traces that are too large to be considered for inclusion for git, or for traces that cannot be shared due to proprietary contents.