drm/selftests: Add command line parser selftests
authorMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 19 Jun 2019 10:17:52 +0000 (12:17 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 19 Jun 2019 10:17:52 +0000 (12:17 +0200)
commitb7ced38916a95a0c66c3e3fc7af3ba2cf0f874af
treefe515e148a5e11f58b29e5093542d31e88d2ba52
parent731514b446fe6748d5a55a3dff202efb45c7d8df
drm/selftests: Add command line parser selftests

The command line parser is pretty tough to get right and very error prone,
so let's add a selftest to try to catch any regression.

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/735348d3a475ce0bcc88b46e093ab149023bb202.1560783090.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/selftests/Makefile
drivers/gpu/drm/selftests/drm_cmdline_selftests.h [new file with mode: 0644]
drivers/gpu/drm/selftests/test-drm_cmdline_parser.c [new file with mode: 0644]