blob: 2a7f93774006a8577f1ca74b4b0cd5d6d91d8bf4 [file] [log] [blame]
Deepak Rawat92053292018-10-16 13:46:08 -07001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Common file for modeset selftests.
4 */
5
6#include <linux/module.h>
7
8#include "test-drm_modeset_common.h"
9
Alexandru Gheorghee5176722018-10-19 11:57:51 +010010#define TESTS "drm_modeset_selftests.h"
11#include "drm_selftest.h"
12
13#include "drm_selftest.c"
14
Deepak Rawat92053292018-10-16 13:46:08 -070015static int __init test_drm_modeset_init(void)
16{
Alexandru Gheorghee5176722018-10-19 11:57:51 +010017 int err;
18
19 err = run_selftests(selftests, ARRAY_SIZE(selftests), NULL);
20
21 return err > 0 ? 0 : err;
Deepak Rawat92053292018-10-16 13:46:08 -070022}
23
24static void __exit test_drm_modeset_exit(void)
25{
26}
27
28module_init(test_drm_modeset_init);
29module_exit(test_drm_modeset_exit);
30
31MODULE_AUTHOR("Intel Corporation");
32MODULE_LICENSE("GPL");