18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Common file for modeset selftests.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/module.h>
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include "test-drm_modeset_common.h"
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define TESTS "drm_modeset_selftests.h"
118c2ecf20Sopenharmony_ci#include "drm_selftest.h"
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include "drm_selftest.c"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistatic int __init test_drm_modeset_init(void)
168c2ecf20Sopenharmony_ci{
178c2ecf20Sopenharmony_ci	int err;
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci	err = run_selftests(selftests, ARRAY_SIZE(selftests), NULL);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci	return err > 0 ? 0 : err;
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_cistatic void __exit test_drm_modeset_exit(void)
258c2ecf20Sopenharmony_ci{
268c2ecf20Sopenharmony_ci}
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_cimodule_init(test_drm_modeset_init);
298c2ecf20Sopenharmony_cimodule_exit(test_drm_modeset_exit);
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciMODULE_AUTHOR("Intel Corporation");
328c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL");
33