* [igt-dev] [PATCH i-g-t v2] tests/drm_buddy: Add drm buddy test cases
@ 2022-04-11 18:50 Arunpravin Paneer Selvam
2022-04-12 8:26 ` Matthew Auld
0 siblings, 1 reply; 2+ messages in thread
From: Arunpravin Paneer Selvam @ 2022-04-11 18:50 UTC (permalink / raw)
To: igt-dev, intel-gfx, amd-gfx, dri-devel
Cc: alexander.deucher, Arunpravin Paneer Selvam, matthew.auld,
christian.koenig
Add a set of drm buddy test cases to validate the
drm/drm_buddy.c memory allocator.
v2: sorted in alphabetical order
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
---
tests/drm_buddy.c | 14 ++++++++++++++
tests/meson.build | 1 +
2 files changed, 15 insertions(+)
create mode 100644 tests/drm_buddy.c
diff --git a/tests/drm_buddy.c b/tests/drm_buddy.c
new file mode 100644
index 00000000..06876e0c
--- /dev/null
+++ b/tests/drm_buddy.c
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2019 Intel Corporation
+ */
+
+#include "igt.h"
+#include "igt_kmod.h"
+
+IGT_TEST_DESCRIPTION("Basic sanity check of DRM's buddy allocator (struct drm_buddy)");
+
+igt_main
+{
+ igt_kselftests("test-drm_buddy", NULL, NULL, NULL);
+}
diff --git a/tests/meson.build b/tests/meson.build
index b0eab3d6..7261e9aa 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -8,6 +8,7 @@ test_progs = [
'debugfs_test',
'dmabuf',
'device_reset',
+ 'drm_buddy',
'drm_import_export',
'drm_mm',
'drm_read',
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [igt-dev] [PATCH i-g-t v2] tests/drm_buddy: Add drm buddy test cases
2022-04-11 18:50 [igt-dev] [PATCH i-g-t v2] tests/drm_buddy: Add drm buddy test cases Arunpravin Paneer Selvam
@ 2022-04-12 8:26 ` Matthew Auld
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Auld @ 2022-04-12 8:26 UTC (permalink / raw)
To: Arunpravin Paneer Selvam
Cc: Intel Graphics Development, ML dri-devel, igt-dev, amd-gfx list,
alexander.deucher, Christian König, Matthew Auld
On Mon, 11 Apr 2022 at 19:51, Arunpravin Paneer Selvam
<Arunpravin.PaneerSelvam@amd.com> wrote:
>
> Add a set of drm buddy test cases to validate the
> drm/drm_buddy.c memory allocator.
>
> v2: sorted in alphabetical order
>
> Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Tests look to be passing in CI sharded runs. Pushed. Thanks.
> ---
> tests/drm_buddy.c | 14 ++++++++++++++
> tests/meson.build | 1 +
> 2 files changed, 15 insertions(+)
> create mode 100644 tests/drm_buddy.c
>
> diff --git a/tests/drm_buddy.c b/tests/drm_buddy.c
> new file mode 100644
> index 00000000..06876e0c
> --- /dev/null
> +++ b/tests/drm_buddy.c
> @@ -0,0 +1,14 @@
> +// SPDX-License-Identifier: MIT
> +/*
> + * Copyright © 2019 Intel Corporation
> + */
> +
> +#include "igt.h"
> +#include "igt_kmod.h"
> +
> +IGT_TEST_DESCRIPTION("Basic sanity check of DRM's buddy allocator (struct drm_buddy)");
> +
> +igt_main
> +{
> + igt_kselftests("test-drm_buddy", NULL, NULL, NULL);
> +}
> diff --git a/tests/meson.build b/tests/meson.build
> index b0eab3d6..7261e9aa 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -8,6 +8,7 @@ test_progs = [
> 'debugfs_test',
> 'dmabuf',
> 'device_reset',
> + 'drm_buddy',
> 'drm_import_export',
> 'drm_mm',
> 'drm_read',
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-12 8:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 18:50 [igt-dev] [PATCH i-g-t v2] tests/drm_buddy: Add drm buddy test cases Arunpravin Paneer Selvam
2022-04-12 8:26 ` Matthew Auld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).