summaryrefslogtreecommitdiff
path: root/tests/gem_ctx_param_basic.c
AgeCommit message (Collapse)Author
2015-11-03tests: Run igt.cocciDaniel Stone
Signed-off-by: Daniel Stone <daniels@collabora.com>
2015-10-19Update CONTEXT_PARAM for GTT_SIZE reportingChris Wilson
Add the new PARAM identifier for reporting the context's GTT size. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-09-18tests/gem_ctx_param_basic.c: fix non-root-set-no-zeromap subtestDaniele Ceraolo Spurio
The test expects an ioctl failure when it tries to set CONTEXT_PARAM_NO_ZEROMAP from a non-root process. However, there is no requirement in the kernel for the user to be root to set this parameter, so the test is failing (it never passed as far as I'm aware of). Fix the test by making it expect a successful ioctl completion. Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
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-08-12tests/gem_ctx_param_basic: support NO_ZEROMAPDavid Weinehall
Signed-off-by: David Weinehall <david.weinehall@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-08-06Revert "tests/gem_ctx_param_basic: fix invalid params"Jesse Barnes
This reverts commit 0b45b0746f45deea11670a8b2c949776bbbef55c. We want to check against our local copy of the params so we can at least potentially catch new flag additions. Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2015-08-06tests/gem_ctx_param_basic: fix invalid paramsJesse Barnes
Use -1 as the invalid param since we've added more since this test was created, causing expected EINVAL failures to return an unexpected error code. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2015-02-13tests/gem_ctx_param_basic: Include header, not sourceDaniel Vetter
Oops. Reported by Tim Gore. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-13tests: Add gem_ctx_param_basicDaniel Vetter
Boring ioctl validation. Luckily no gaps found while doing it. v2: git add ftw! v3: Fixes: - args->size is an outparam for get, adjust test. - Pick an invalid param, not an invalid ioctl number ... tsk. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>