From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org, swati2.sharma@intel.com
Subject: [i-g-t] tests/kms_feature_discovery: Add basic sanity test
Date: Fri, 29 Dec 2023 15:48:53 +0530 [thread overview]
Message-ID: <20231229101853.897242-1-bhanuprakash.modem@intel.com> (raw)
Add basic sanity test to make sure DRM_IOCTL_MODE_GETRESOURCES is
working fine.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
tests/kms_feature_discovery.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/kms_feature_discovery.c b/tests/kms_feature_discovery.c
index 5bca9ad76..eb762928f 100644
--- a/tests/kms_feature_discovery.c
+++ b/tests/kms_feature_discovery.c
@@ -44,6 +44,9 @@
#include "igt_types.h"
/**
+ * SUBTEST: basic-rte
+ * Description: Basic sanity test to make sure DRM_IOCTL_MODE_GETRESOURCES is working fine.
+ *
* SUBTEST: display
* Description: Make sure that we have display support.
*
@@ -87,6 +90,17 @@ igt_main {
debugfs_fd = igt_debugfs_dir(fd);
}
+ igt_describe("Basic sanity test to make sure DRM_IOCTL_MODE_GETRESOURCES is working fine.");
+ igt_subtest("basic-rte") {
+ drmModeResPtr resources = drmModeGetResources(fd);
+
+ /* Operation not supported on non-display platforms. */
+ if (!resources)
+ igt_assert_eq(errno, EOPNOTSUPP);
+
+ drmModeFreeResources(resources);
+ }
+
igt_subtest_group {
igt_fixture {
igt_display_require(&display, fd);
--
2.40.0
reply other threads:[~2023-12-29 10:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231229101853.897242-1-bhanuprakash.modem@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=swati2.sharma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox