]> git.cworth.org Git - apitrace-tests/commit
Rework testing of trimming of operations with no side effects
authorCarl Worth <cworth@cworth.org>
Sat, 16 Feb 2013 01:19:57 +0000 (17:19 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Apr 2013 21:27:06 +0000 (14:27 -0700)
commit78f3329f3481c13886be0189c58b98ee29a4c484
tree152f074c6e951cd47c75c1f80b22b8a8e5eddbbd
parent901e36fd289e5815dcab62e7bbb54f9f05d9afdc
Rework testing of trimming of operations with no side effects

The previous test was bogus. The only call it trimmed was glxSwapBuffers
which is actually invalid, (this call definitely does have side effects,
but can easily be trimmed if desired with --trim-spec=drawing).

The new testing here uses a trace from a new program, (source
included), called few-side-effects which simply makes various calls
that do not have side effects, (such as glGetIntegerv and
glIsEnabled).

Then, the testing exercises the two independent mechanisms available
for trimming calls without side effects:

    trim --prune

Trims calls within the user-specified range without side
effects.

    trim --deps --trim-spec=no-side-effects

Trims calls outside the user-specific range without side
effects.

Three new tests are added here, one for each of the above cases and
one for both combined, (prune, trim, and prune-and-trim).
cli/.gitignore
cli/CMakeLists.txt
cli/cli-trim-no-side-effects-prune-and-trim.script [new file with mode: 0644]
cli/cli-trim-no-side-effects-prune.script [new file with mode: 0644]
cli/cli-trim-no-side-effects-trim.script [new file with mode: 0644]
cli/cli-trim-spec-no-side-effects.script [deleted file]
cli/few-side-effects.trace [new file with mode: 0644]
cli/src/.gitignore
cli/src/Makefile
cli/src/few-side-effects.c [new file with mode: 0644]