]> git.cworth.org Git - apitrace-tests/blob - trim_stress/README.markdown
trim_stress: Fail test at first frame which doesn't match reference
[apitrace-tests] / trim_stress / README.markdown
1 This directory performs stress testing of "apitrace trim".
2
3 For each trace file in this directory the trim_stress.py test driver
4 will perform the following operations:
5
6 Given <program>.trace:
7
8     1. Generate snapshots of original trace in ./<program>-ref/, (this
9        step is skipped if the <program>-ref directory already exists.
10        Simply delete this directory before "make test" to force new
11        generation of reference images.
12
13     2. For each frame of the trace:
14
15         1. Use "apitrace trim" to trim <program>.trace to a
16            single-frame trace in <program>-trim.trace
17
18         2. Generate a snapshot of the trimmed frame to
19            ./<program>-tmp-out/<frame>.png
20
21         3. Use "apitrace diff-images" to compare this one frame with
22            the corresponding reference image in ./<program>-ref.  If
23            the images differ the entire process is interrupted here.
24
25         4. Move the frame snapshot from ./<program>-tmp-out to
26            ./<program>-out