aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2016-12-22 08:36:09 +0000
committerDaniel Vetter <[email protected]>2016-12-27 12:34:39 +0100
commit50f0033d1a0f3a8e9eed09ab68067fbb57b0669d (patch)
treee0fd92904fed03f9a211662b73232a644daa7022 /scripts
parenta33d42dd03352d2e9d3d2c00bfa435c7a5ebab25 (diff)
drm: Add some kselftests for the DRM range manager (struct drm_mm)
First we introduce a smattering of infrastructure for writing selftests. The idea is that we have a test module that exercises a particular portion of the exported API, and that module provides a set of tests that can either be run as an ensemble via kselftest or individually via an igt harness (in this case igt/drm_mm). To accommodate selecting individual tests, we export a boolean parameter to control selection of each test - that is hidden inside a bunch of reusable boilerplate macros to keep writing the tests simple. v2: Choose a random random_seed unless one is specified by the user. v3: More parameters to control max_iterations and max_prime of the tests. Testcase: igt/drm_mm Signed-off-by: Chris Wilson <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Joonas Lahtinen <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions