Verifying that everything still passes after the rename.
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
# portable across all platforms. However, these tests all rely on
# doing image comparisons and the current implementation of the
# "apitrace dump-images" command relies on direct invocation of the
# portable across all platforms. However, these tests all rely on
# doing image comparisons and the current implementation of the
# "apitrace dump-images" command relies on direct invocation of the
#
# Someday, we should have more unified commands for replaying traces,
# dumping images, etc. At that point these cli tests should be usable
#
# Someday, we should have more unified commands for replaying traces,
# dumping images, etc. At that point these cli tests should be usable
- api_retrace_map = {
- 'gl': 'glretrace',
- 'egl_gl': 'eglretrace',
- 'egl_gles1': 'eglretrace',
- 'egl_gles2': 'eglretrace',
- 'd3d8': 'd3dretrace',
- 'd3d9': 'd3dretrace',
- 'd3d10': 'd3dretrace',
- 'd3d10_1': 'd3dretrace',
- 'd3d11': 'd3dretrace',
- 'd3d11_1': 'd3dretrace',
+ api_replay_map = {
+ 'gl': 'glreplay',
+ 'egl_gl': 'eglreplay',
+ 'egl_gles1': 'eglreplay',
+ 'egl_gles2': 'eglreplay',
+ 'd3d8': 'd3dreplay',
+ 'd3d9': 'd3dreplay',
+ 'd3d10': 'd3dreplay',
+ 'd3d10_1': 'd3dreplay',
+ 'd3d11': 'd3dreplay',
+ 'd3d11_1': 'd3dreplay',
sys.stdout.flush()
sys.stderr.write('\n')
sys.stdout.flush()
sys.stderr.write('\n')
- if self.api not in self.api_retrace_map:
+ if self.api not in self.api_replay_map:
return
for callNo, refImageFileName in images:
return
for callNo, refImageFileName in images:
s = json.dumps(state, sort_keys=True, indent=2)
open(filename, 'wt').write(s)
s = json.dumps(state, sort_keys=True, indent=2)
open(filename, 'wt').write(s)
- def retrace(self):
- if self.api not in self.api_retrace_map:
+ def replay(self):
+ if self.api not in self.api_replay_map:
return
sys.stderr.write('Retracing %s...\n' % (self.trace_file,))
return
sys.stderr.write('Retracing %s...\n' % (self.trace_file,))
p.wait()
if p.returncode != 0:
p.wait()
if p.returncode != 0:
- fail('retrace failed with code %i' % (p.returncode))
+ fail('replay failed with code %i' % (p.returncode))
sys.stdout.flush()
sys.stderr.write('\n')
sys.stdout.flush()
sys.stderr.write('\n')
- p = self._retrace(['-D', str(callNo)])
+ p = self._replay(['-D', str(callNo)])
state = json.load(p.stdout, strict=False)
p.wait()
if p.returncode != 0:
state = json.load(p.stdout, strict=False)
p.wait()
if p.returncode != 0:
- fail('retrace returned code %i' % (p.returncode))
+ fail('replay returned code %i' % (p.returncode))
self.adjustSrcState(state)
self.adjustSrcState(state)
- def _retrace(self, args = None, stdout=subprocess.PIPE):
- retrace = self.api_retrace_map[self.api]
- #cmd = [get_build_program(retrace)]
- cmd = [options.apitrace, 'retrace']
+ def _replay(self, args = None, stdout=subprocess.PIPE):
+ replay = self.api_replay_map[self.api]
+ #cmd = [get_build_program(replay)]
+ cmd = [options.apitrace, 'replay']
if self.doubleBuffer:
cmd += ['-db']
else:
if self.doubleBuffer:
cmd += ['-db']
else:
self.runApp()
self.traceApp()
self.checkTrace()
self.runApp()
self.traceApp()
self.checkTrace()
performed by the python program in ../app_driver.py. This driver
program runs the application with the given arguments, performs a
trace of the application, checks the trace against the reference
performed by the python program in ../app_driver.py. This driver
program runs the application with the given arguments, performs a
trace of the application, checks the trace against the reference
-script, and then run a "retrace" of the application (replaying the
+script, and then run a "replay" of the application (replaying the
commands in the trace).
In addition to a dump of the expected trace content, the reference
commands in the trace).
In addition to a dump of the expected trace content, the reference
Rather than cover the full breadth of OpenGL functionality, the focus here is
to cover entrypoints that require special hand-written code to be
Rather than cover the full breadth of OpenGL functionality, the focus here is
to cover entrypoints that require special hand-written code to be
-traced/retraced correctly.
+traced/replayed correctly.