trim_stress: Only look at files matching [0-9]*.png when counting references If there are any differences from a previous run, there will be several additional image files left around, (.thumb.png, etc.). And we don't want to count those.
trim_stress: Fail test at first frame which doesn't match reference When stress-testing large traces, it's inefficient to work through the entire trace before reporting an error that occurred in one of the first frames. Instead, check each frame one at a time immediately as each rendered frame becomes available. Then fail the test at the first mismatched frame.
trim: Update for --exact -> --auto
Add stress tests from "apitrace trim". The trim_stress directory makes it simple to stress test "apitrace trim" by simply dropping new trace files into this directory. The stress testing ensures that creating a new trace by trimming to a single frame still generates the same image as that frame from the original trace. It performs this test exhaustively for each frame of each trace. This testing ensures that trimming doesn't break the rendered results of any frame. It does not do anything to test that trimming actually discards anything. So the existing cli tests are still independendently useful for verifying that expected content is discarded.