From patchwork Tue Oct 16 22:23:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Singh Rawat X-Patchwork-Id: 10644263 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 118AE109C for ; Tue, 16 Oct 2018 22:24:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01BE329C59 for ; Tue, 16 Oct 2018 22:24:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA62F2A0C9; Tue, 16 Oct 2018 22:24:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A576629C59 for ; Tue, 16 Oct 2018 22:24:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 19DD46E2CB; Tue, 16 Oct 2018 22:24:11 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from EX13-EDG-OU-001.vmware.com (ex13-edg-ou-001.vmware.com [208.91.0.189]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7B1D76E2C8; Tue, 16 Oct 2018 22:24:07 +0000 (UTC) Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Tue, 16 Oct 2018 15:23:41 -0700 Received: from ubuntu.localdomain (promb-2n-dhcp77.eng.vmware.com [10.20.88.77]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 0221140CDC; Tue, 16 Oct 2018 15:24:07 -0700 (PDT) From: Deepak Rawat To: , , Date: Tue, 16 Oct 2018 15:23:41 -0700 Message-ID: <20181016222341.1537-5-drawat@vmware.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181016222341.1537-1-drawat@vmware.com> References: <20181016222341.1537-1-drawat@vmware.com> MIME-Version: 1.0 Received-SPF: None (EX13-EDG-OU-001.vmware.com: drawat@vmware.com does not designate permitted sender hosts) Subject: [Intel-gfx] [PATCH i-g-t 5/5] tests/kms_selftest: Integrate kernel selftest test-drm_modeset X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Deepak Rawat Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Call kernel selftest module test-drm_modeset for testing KMS. v2: - Add test alphabetically. - Add test to meson build. v3: Rename to kms_selftest. Signed-off-by: Deepak Rawat --- tests/Makefile.sources | 1 + tests/igt_command_line.sh | 2 +- tests/kms_selftest.c | 10 ++++++++++ tests/meson.build | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tests/kms_selftest.c diff --git a/tests/Makefile.sources b/tests/Makefile.sources index 001f1a2b..cdf5a7e1 100644 --- a/tests/Makefile.sources +++ b/tests/Makefile.sources @@ -202,6 +202,7 @@ TESTS_progs = \ kms_pwrite_crc \ kms_rmfb \ kms_rotation_crc \ + kms_selftest \ kms_setmode \ kms_sysfs_edid_timing \ kms_tv_load_detect \ diff --git a/tests/igt_command_line.sh b/tests/igt_command_line.sh index 8285ba62..a4ec3f95 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" != "kms_selftest" ]; then fail $test fi fi diff --git a/tests/kms_selftest.c b/tests/kms_selftest.c new file mode 100644 index 00000000..f61ddd99 --- /dev/null +++ b/tests/kms_selftest.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 KMS selftests."); + +igt_main +{ + igt_kselftests("test-drm_modeset", NULL, NULL, NULL); +} diff --git a/tests/meson.build b/tests/meson.build index 697ff515..d74eb109 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -177,6 +177,7 @@ test_progs = [ 'kms_pwrite_crc', 'kms_rmfb', 'kms_rotation_crc', + 'kms_selftest', 'kms_setmode', 'kms_sysfs_edid_timing', 'kms_tv_load_detect',