summaryrefslogtreecommitdiff
path: root/tests/gem_storedw_loop_bsd.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-03-25 20:06:20 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-07-18 15:56:35 +0100
commitd1e862324b747a0ab5d985eaa6830076817231c5 (patch)
tree785a192f9b79be28c5ead01f50cf1ba40dc281b2 /tests/gem_storedw_loop_bsd.c
parent5fa15f79d00ba4f51f35cb83cf2e82a9460b60b2 (diff)
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>
Diffstat (limited to 'tests/gem_storedw_loop_bsd.c')
-rw-r--r--tests/gem_storedw_loop_bsd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gem_storedw_loop_bsd.c b/tests/gem_storedw_loop_bsd.c
index 232c3a62..d9046d69 100644
--- a/tests/gem_storedw_loop_bsd.c
+++ b/tests/gem_storedw_loop_bsd.c
@@ -156,8 +156,10 @@ int main(int argc, char **argv)
store_dword_loop(1);
store_dword_loop(2);
- store_dword_loop(3);
- store_dword_loop(5);
+ if (!drmtest_run_in_simulation()) {
+ store_dword_loop(3);
+ store_dword_loop(5);
+ }
drm_intel_bo_unreference(target_buffer);
intel_batchbuffer_free(batch);