summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/selftests/test-drm_modeset_common.c
diff options
context:
space:
mode:
authorAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>2018-10-19 11:57:51 +0100
committerAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>2018-10-22 10:30:50 +0100
commite51767279f11571b112dbeaef2628968c62f90a6 (patch)
treebee1cb5e742d71c58bb08f47667df5f401cd9caa /drivers/gpu/drm/selftests/test-drm_modeset_common.c
parent9c71a6686bfa4bd8404d1bfa8f210b9901991fa9 (diff)
drm/selftest: Refactor test-drm_plane_helper
The idea is to split test implementations in different compilation units, but have one single place where we define the list of tests, in this case(drm_modeset_selftests.h). Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20181019105752.17741-9-alexandru-cosmin.gheorghe@arm.com
Diffstat (limited to 'drivers/gpu/drm/selftests/test-drm_modeset_common.c')
-rw-r--r--drivers/gpu/drm/selftests/test-drm_modeset_common.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/selftests/test-drm_modeset_common.c b/drivers/gpu/drm/selftests/test-drm_modeset_common.c
index fad5209043f1..2a7f93774006 100644
--- a/drivers/gpu/drm/selftests/test-drm_modeset_common.c
+++ b/drivers/gpu/drm/selftests/test-drm_modeset_common.c
@@ -7,9 +7,18 @@
#include "test-drm_modeset_common.h"
+#define TESTS "drm_modeset_selftests.h"
+#include "drm_selftest.h"
+
+#include "drm_selftest.c"
+
static int __init test_drm_modeset_init(void)
{
- return test_drm_plane_helper();
+ int err;
+
+ err = run_selftests(selftests, ARRAY_SIZE(selftests), NULL);
+
+ return err > 0 ? 0 : err;
}
static void __exit test_drm_modeset_exit(void)