tests: Instrument tests run in simulation to run quickly
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 25 Mar 2013 20:06:20 +0000 (20:06 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 18 Jul 2013 14:56:35 +0000 (15:56 +0100)
commitd1e862324b747a0ab5d985eaa6830076817231c5
tree785a192f9b79be28c5ead01f50cf1ba40dc281b2
parent5fa15f79d00ba4f51f35cb83cf2e82a9460b60b2
tests: Instrument tests run in simulation to run quickly

We tweak the tests marked as runnable in simulation to run more quickly,
more often then not at the expense of stress testing (which is of an
arguable interest for the initial bring up in simulation). Hopefully the
values chosen still test something, which is not always straightforward.

It does run quickly, the number on an IVB machines are:

$ time sudo IGT_SIMULATION=0 ./piglit-run.py tests/igt.tests foo
[...]
real 2m0.141s
user 0m16.365s
sys 1m33.382s

Vs.

$ time sudo IGT_SIMULATION=1 ./piglit-run.py tests/igt.tests foo
[...]
real 0m0.448s
user 0m0.226s
sys 0m0.183s

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
12 files changed:
tests/gem_cpu_reloc.c
tests/gem_ctx_basic.c
tests/gem_exec_nop.c
tests/gem_mmap_gtt.c
tests/gem_pipe_control_store_loop.c
tests/gem_render_linear_blits.c
tests/gem_ring_sync_loop.c
tests/gem_storedw_batches_loop.c
tests/gem_storedw_loop_blt.c
tests/gem_storedw_loop_bsd.c
tests/gem_storedw_loop_render.c
tests/gem_tiled_blits.c