#include <kunit/test.h>
#include <drm/drm_connector.h>
#include <drm/drm_modes.h>
static const struct drm_connector no_connector = …;
static void drm_test_cmdline_force_e_only(struct kunit *test)
{ … }
static void drm_test_cmdline_force_D_only_not_digital(struct kunit *test)
{ … }
static const struct drm_connector connector_hdmi = …;
static void drm_test_cmdline_force_D_only_hdmi(struct kunit *test)
{ … }
static const struct drm_connector connector_dvi = …;
static void drm_test_cmdline_force_D_only_dvi(struct kunit *test)
{ … }
static void drm_test_cmdline_force_d_only(struct kunit *test)
{ … }
static void drm_test_cmdline_res(struct kunit *test)
{ … }
static void drm_test_cmdline_res_vesa(struct kunit *test)
{ … }
static void drm_test_cmdline_res_vesa_rblank(struct kunit *test)
{ … }
static void drm_test_cmdline_res_rblank(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp(struct kunit *test)
{ … }
static void drm_test_cmdline_res_refresh(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_interlaced(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_margins(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_force_off(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_force_on(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_force_on_analog(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_force_on_digital(struct kunit *test)
{ … }
static void drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on(struct kunit *test)
{ … }
static void drm_test_cmdline_res_margins_force_on(struct kunit *test)
{ … }
static void drm_test_cmdline_res_vesa_margins(struct kunit *test)
{ … }
static void drm_test_cmdline_name(struct kunit *test)
{ … }
static void drm_test_cmdline_name_bpp(struct kunit *test)
{ … }
static void drm_test_cmdline_name_option(struct kunit *test)
{ … }
static void drm_test_cmdline_name_bpp_option(struct kunit *test)
{ … }
static void drm_test_cmdline_rotate_0(struct kunit *test)
{ … }
static void drm_test_cmdline_rotate_90(struct kunit *test)
{ … }
static void drm_test_cmdline_rotate_180(struct kunit *test)
{ … }
static void drm_test_cmdline_rotate_270(struct kunit *test)
{ … }
static void drm_test_cmdline_hmirror(struct kunit *test)
{ … }
static void drm_test_cmdline_vmirror(struct kunit *test)
{ … }
static void drm_test_cmdline_margin_options(struct kunit *test)
{ … }
static void drm_test_cmdline_multiple_options(struct kunit *test)
{ … }
static void drm_test_cmdline_bpp_extra_and_option(struct kunit *test)
{ … }
static void drm_test_cmdline_extra_and_option(struct kunit *test)
{ … }
static void drm_test_cmdline_freestanding_options(struct kunit *test)
{ … }
static void drm_test_cmdline_freestanding_force_e_and_options(struct kunit *test)
{ … }
static void drm_test_cmdline_panel_orientation(struct kunit *test)
{ … }
struct drm_cmdline_invalid_test { … };
static void drm_test_cmdline_invalid(struct kunit *test)
{ … }
static const struct drm_cmdline_invalid_test drm_cmdline_invalid_tests[] = …;
static void drm_cmdline_invalid_desc(const struct drm_cmdline_invalid_test *t,
char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_cmdline_invalid, drm_cmdline_invalid_tests, drm_cmdline_invalid_desc);
struct drm_cmdline_tv_option_test { … };
static void drm_test_cmdline_tv_options(struct kunit *test)
{ … }
#define TV_OPT_TEST(_opt, _cmdline, _mode_fn) …
static const struct drm_cmdline_tv_option_test drm_cmdline_tv_option_tests[] = …;
static void drm_cmdline_tv_option_desc(const struct drm_cmdline_tv_option_test *t,
char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_cmdline_tv_option,
drm_cmdline_tv_option_tests,
drm_cmdline_tv_option_desc);
static struct kunit_case drm_cmdline_parser_tests[] = …;
static struct kunit_suite drm_cmdline_parser_test_suite = …;
kunit_test_suite(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;