]> git.cworth.org Git - apitrace-tests/blob - cli/cli-trim-no-side-effects-prune.script
Add --exact, --no-deps, or --no-prune to trim tests as needed
[apitrace-tests] / cli / cli-trim-no-side-effects-prune.script
1 # Verify that "trim --prune" drops calls with no side effects
2
3 # Tell trim to trim to the entire trace, but pruning calls
4 apitrace trim --no-deps --prune few-side-effects.trace
5
6 # Verify that we actually trimmed what we wanted to (just calls with
7 # no side effects)
8
9 apitrace diff --diff=python few-side-effects.trace few-side-effects-trim.trace
10 expect r"""  glXChooseVisual(31941248, 0, (GLX_RGBA, GLX_RED_SIZE, GLX_RED_SIZE, GLX_GREEN_SIZE, GLX_RED_SIZE, GLX_BLUE_SIZE, GLX_RED_SIZE, GLX_ALPHA_SIZE, GLX_RED_SIZE, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, GLX_RED_SIZE, GLX_X_VISUAL_TYPE, GLX_DIRECT_COLOR, 0)) = ([31985400, 34, 0, 24, 5, 16711680, 65280, 255, 256, 8])
11   glXCreateContext(31941248, ([31985400, 34, 0, 24, 5, 16711680, 65280, 255, 256, 8]), 0, True) = 32022336
12   glXMakeCurrent(31941248, 60817409, 32022336) = True
13 - glXQueryVersion(31941248, (1), (4)) = True
14   glViewport(0, 0, 64, 64)
15   glMatrixMode(GL_PROJECTION)
16   glLoadIdentity()
17   glOrtho(0.0, 64.0, 64.0, 0.0, 0.0, 1.0)
18   glMatrixMode(GL_MODELVIEW)
19 - glGetIntegerv(GL_LINE_WIDTH, (1))
20 - glGetIntegerv(GL_LOGIC_OP_MODE, (5379))
21 - glIsEnabled(GL_BLEND) = GL_FALSE
22   glEnable(GL_BLEND)
23 - glIsEnabled(GL_BLEND) = GL_TRUE
24   glDisable(GL_BLEND)
25   glXSwapBuffers(31941248, 60817409)
26 - glGetIntegerv(GL_LINE_WIDTH, (1))
27 - glGetIntegerv(GL_LOGIC_OP_MODE, (5379))
28 - glIsEnabled(GL_BLEND) = GL_FALSE
29   glEnable(GL_BLEND)
30 - glIsEnabled(GL_BLEND) = GL_TRUE
31   glDisable(GL_BLEND)
32   glXDestroyContext(31941248, 32022336)
33 """