[Intel-gfx] [PATCH i-g-t 6/6] tests/plane_damage: Integrate kernel selftest test-drm_damage_helper

Deepak Rawat drawat at vmware.com
Thu Oct 11 00:21:04 UTC 2018


Call kernel selftest module test-drm_damage_helper from igt.

v2:
- Add test alphabetically.
- Add test to meson build.

Cc: ville.syrjala at linux.intel.com
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Pekka Paalanen <ppaalanen at gmail.com>
Cc: Daniel Stone <daniel at fooishbar.org>
Signed-off-by: Deepak Rawat <drawat at vmware.com>
---
 tests/Makefile.sources    |  1 +
 tests/drm_plane_damage.c  | 10 ++++++++++
 tests/igt_command_line.sh |  2 +-
 tests/meson.build         |  1 +
 4 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 tests/drm_plane_damage.c

diff --git a/tests/Makefile.sources b/tests/Makefile.sources
index 001f1a2b..eae5f39e 100644
--- a/tests/Makefile.sources
+++ b/tests/Makefile.sources
@@ -32,6 +32,7 @@ TESTS_progs = \
 	debugfs_test \
 	drm_import_export \
 	drm_mm \
+	drm_plane_damage \
 	drm_read \
 	drv_getparams_basic \
 	drv_hangman \
diff --git a/tests/drm_plane_damage.c b/tests/drm_plane_damage.c
new file mode 100644
index 00000000..c2b793cc
--- /dev/null
+++ b/tests/drm_plane_damage.c
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include "igt.h"
+#include "igt_kmod.h"
+
+IGT_TEST_DESCRIPTION("Basic sanity check of DRM's plane damage helper iterator.");
+
+igt_main
+{
+	igt_kselftests("test-drm_damage_helper", NULL, NULL, NULL);
+}
diff --git a/tests/igt_command_line.sh b/tests/igt_command_line.sh
index 8285ba62..621b2cbd 100755
--- a/tests/igt_command_line.sh
+++ b/tests/igt_command_line.sh
@@ -90,7 +90,7 @@ check_test ()
 		# Subtest enumeration of kernel selftest launchers depends
 		# on the running kernel. If selftests are not enabled,
 		# they will output nothing and exit with 0.
-		if [ "$testname" != "drv_selftest" -a "$testname" != "drm_mm" ]; then
+		if [ "$testname" != "drv_selftest" -a "$testname" != "drm_mm" -a "$testname" != "drm_plane_damage" ]; then
 			fail $test
 		fi
 	fi
diff --git a/tests/meson.build b/tests/meson.build
index 697ff515..5acd7aa2 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -9,6 +9,7 @@ test_progs = [
 	'debugfs_test',
 	'drm_import_export',
 	'drm_mm',
+	'drm_plane_damage',
 	'drm_read',
 	'drv_getparams_basic',
 	'drv_hangman',
-- 
2.17.1



More information about the Intel-gfx mailing list