summaryrefslogtreecommitdiff
path: root/tests/gem_wait.c
AgeCommit message (Collapse)Author
2016-02-23lib: Move gem_wait() to ioctl-wrappersChris Wilson
We intend to use gem_wait() in more tests than gem_wait.c, so move the simple ioctl wrapper into the core. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-18igt/gem_ctx_thrash: Combine context thrashing with a render testChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-09-11convert drm_open_any*() calls to drm_open_driver*(DRIVER_INTEL) calls with cocciMicah Fedke
Apply the new API to all call sites within the test suite using the following semantic patch: // Semantic patch for replacing drm_open_any* with arch-specific drm_open_driver* calls @@ identifier i =~ "\bdrm_open_any\b"; @@ - i() + drm_open_driver(DRIVER_INTEL) @@ identifier i =~ "\bdrm_open_any_master\b"; @@ - i() + drm_open_driver_master(DRIVER_INTEL) @@ identifier i =~ "\bdrm_open_any_render\b"; @@ - i() + drm_open_driver_render(DRIVER_INTEL) @@ identifier i =~ "\b__drm_open_any\b"; @@ - i() + __drm_open_driver(DRIVER_INTEL) Signed-off-by: Micah Fedke <micah.fedke@collabora.co.uk> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-08-21lib: add a single include headerThomas Wood
Add a header that includes all the headers for the library. This allows reorganisation of the library without affecting programs using it and also simplifies the headers that need to be included to use the library. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-08-12tests: Document ABI extension catchersDaniel Vetter
Our invalid-flags/params testcases are meant to catch abi extensions by just testing for the next available flag/param. Unfortunately we need that since without those we forgot to write testcases for these new flags way too often :( But it's not entirely clear why this is, so document this trick with comments. Also gem_wait wasn't this paranoid, so change the testcase to be so. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-03-19igt/gem_wait: When waiting for infinity, an infinity remainsChris Wilson
Incorrect testing of out parameters leads to bug noise... Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89494#c4 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-06igt/gem_wait: Test negative timeoutsChris Wilson
The user should be able to specify a negative timeout to indefinitely wait upon a bo becoming idle. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-06igt/gem_wait: Timeout parameter to the WAIT ioctl is signedChris Wilson
So convert from uint64_t to int64_t. The distinction becomes important when you realise what test we were missing... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-27lib: add igt_assert_ltDaniel Vetter
Found one user in gem_wait.c Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2014-10-06gem_wait: Use PRIu64 in format stringDamien Lespiau
../../tests/gem_wait.c: In function ‘render_timeout’: ../../tests/gem_wait.c:182:3: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=] igt_info("Finished with %llu time remaining\n", timeout); Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-10-06tests/gem_wait: Don't close drmfd in subtestDaniel Vetter
I didn't notice this on the machine I developed it since the original wait testcase fails there. Oops. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-09-29tests/gem_wait: argument validation testsDaniel Vetter
Shockingly we don't check for 0 flags! Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2014-09-29tests/gem_wait_render_timeout: Convert to subtestsDaniel Vetter
I want to add a bunch of api tests besides the functional "render-timeout" testcase. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>