* [igt-dev] [PATCH i-g-t] tests/xe: Add a test that launches the xe driver live kunit tests
@ 2023-06-08 13:28 Mauro Carvalho Chehab
2023-06-08 13:32 ` [igt-dev] ✗ Fi.CI.BUILD: failure for " Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2023-06-08 13:28 UTC (permalink / raw)
To: igt-dev
From: Mauro Carvalho Chehab <mchehab@kernel.org>
The xe driver live kunit tests live in the xe driver tests/
subdirectory and are intended to be launched by this igt test.
To begin with we only have one test ("dma-buf").
[mchehab: updated to reflect current KUnit tests]
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
tests/meson.build | 1 +
tests/xe/xe_live_ktest.c | 52 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 tests/xe/xe_live_ktest.c
diff --git a/tests/meson.build b/tests/meson.build
index f71be1dbe5f9..27122a367527 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -259,6 +259,7 @@ xe_progs = [
'xe_guc_pc',
'xe_huc_copy',
'xe_intel_bb',
+ 'xe_live_ktest',
'xe_mmap',
'xe_mmio',
'xe_module_load',
diff --git a/tests/xe/xe_live_ktest.c b/tests/xe/xe_live_ktest.c
new file mode 100644
index 000000000000..7dcf679069b8
--- /dev/null
+++ b/tests/xe/xe_live_ktest.c
@@ -0,0 +1,52 @@
+#include "igt.h"
+#include "igt_kmod.h"
+
+/**
+ * TEST: Xe driver live kunit tests
+ * Description: Xe driver live dmabuf unit tests
+ * Category: Software building block
+ * Sub-category: kunit
+ * Functionality: kunit
+ * Test category: functionality test
+ * Run type: BAT
+ *
+ * SUBTEST: bo
+ * Functionality: bo
+ *
+ * SUBTEST: dmabuf
+ * Functionality: dmabuf
+ *
+ * SUBTEST: migrate
+ * Functionality: migrate
+ *
+ * SUBTEST: pci
+ * Functionality: pci
+ *
+ * SUBTEST: rtp
+ * Functionality: rtp
+ *
+ * SUBTEST: wa
+ * Functionality: workarounds
+ */
+
+struct kunit_tests {
+ const char *kunit;
+ const char *name;
+};
+
+static const struct kunit_tests live_tests[] = {
+ { "xe_bo_test", "bo" },
+ { "xe_dma_buf_test", "dmabuf" },
+ { "xe_migrate_test", "migrate" },
+ { "xe_pci_test", "pci" },
+ { "xe_rtp_test", "rtp" },
+ { "xe_wa_test", "wa" },
+};
+
+igt_main
+{
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(live_tests); i++)
+ igt_kunit(live_tests[i].kunit, live_tests[i].name, NULL);
+}
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [igt-dev] ✗ Fi.CI.BUILD: failure for tests/xe: Add a test that launches the xe driver live kunit tests
2023-06-08 13:28 [igt-dev] [PATCH i-g-t] tests/xe: Add a test that launches the xe driver live kunit tests Mauro Carvalho Chehab
@ 2023-06-08 13:32 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2023-06-08 13:32 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: igt-dev
== Series Details ==
Series: tests/xe: Add a test that launches the xe driver live kunit tests
URL : https://patchwork.freedesktop.org/series/119074/
State : failure
== Summary ==
IGT patchset build failed on latest successful build
2dd77d6d827a308caae49ce3eba759c2bab394ed tests/xe/intel_bb: remove full-batch
[303/695] Linking target tests/i915_pm_rps.
[304/695] Linking target tests/i915_pm_sseu.
[305/695] Linking target tests/i915_power.
[306/695] Linking target tests/i915_selftest.
[307/695] Linking target tests/i915_query.
[308/695] Linking target tests/i915_suspend.
[309/695] Linking target tests/kms_big_fb.
[310/695] Linking target tests/kms_busy.
[311/695] Linking target tests/kms_big_joiner.
[312/695] Linking target tests/kms_ccs.
[313/695] Linking target tests/kms_cdclk.
[314/695] Linking target tests/kms_draw_crc.
[315/695] Linking target tests/kms_fb_coherency.
[316/695] Linking target tests/kms_fbcon_fbt.
[317/695] Linking target tests/kms_flip_scaled_crc.
[318/695] Linking target tests/kms_fence_pin_leak.
[319/695] Linking target tests/kms_flip_tiling.
[320/695] Linking target tests/kms_frontbuffer_tracking.
[321/695] Linking target tests/kms_mmap_write_crc.
[322/695] Linking target tests/kms_pipe_b_c_ivb.
[323/695] Linking target tests/kms_psr2_su.
[324/695] Linking target tests/kms_psr_stress_test.
[325/695] Linking target tests/kms_pwrite_crc.
[326/695] Linking target tests/sysfs_defaults.
[327/695] Linking target tests/sysfs_heartbeat_interval.
[328/695] Linking target tests/sysfs_preempt_timeout.
[329/695] Linking target tests/sysfs_timeslice_duration.
[330/695] Linking target tests/xe_create.
[331/695] Linking target tests/xe_compute.
[332/695] Linking target tests/xe_dma_buf_sync.
[333/695] Linking target tests/xe_debugfs.
[334/695] Linking target tests/xe_evict.
[335/695] Linking target tests/xe_exec_compute_mode.
[336/695] Linking target tests/xe_exec_balancer.
[337/695] Linking target tests/xe_exec_basic.
[338/695] Linking target tests/xe_exec_fault_mode.
[339/695] Linking target tests/xe_exec_reset.
[340/695] Linking target tests/xe_exec_threads.
[341/695] Linking target tests/xe_gpgpu_fill.
[342/695] Compiling C object 'tests/59830eb@@xe_live_ktest@exe/xe_xe_live_ktest.c.o'.
FAILED: tests/59830eb@@xe_live_ktest@exe/xe_xe_live_ktest.c.o
cc -Itests/59830eb@@xe_live_ktest@exe -Itests -I../../../usr/src/igt-gpu-tools/tests -I../../../usr/src/igt-gpu-tools/include -I../../../usr/src/igt-gpu-tools/include/drm-uapi -I../../../usr/src/igt-gpu-tools/include/linux-uapi -Ilib -I../../../usr/src/igt-gpu-tools/lib -I../../../usr/src/igt-gpu-tools/lib/stubs/syscalls -I. -I../../../usr/src/igt-gpu-tools/ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/x86_64-linux-gnu -I/usr/include/valgrind -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_live_ktest@exe/xe_xe_live_ktest.c.o' -MF 'tests/59830eb@@xe_live_ktest@exe/xe_xe_live_ktest.c.o.d' -o 'tests/59830eb@@xe_live_ktest@exe/xe_xe_live_ktest.c.o' -c ../../../usr/src/igt-gpu-tools/tests/xe/xe_live_ktest.c
../../../usr/src/igt-gpu-tools/tests/xe/xe_live_ktest.c: In function ‘__igt_unique____real_main46’:
../../../usr/src/igt-gpu-tools/tests/xe/xe_live_ktest.c:51:3: error: implicit declaration of function ‘igt_kunit’; did you mean ‘igt_exit’? [-Werror=implicit-function-declaration]
51 | igt_kunit(live_tests[i].kunit, live_tests[i].name, NULL);
| ^~~~~~~~~
| igt_exit
../../../usr/src/igt-gpu-tools/tests/xe/xe_live_ktest.c:51:3: warning: nested extern declaration of ‘igt_kunit’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-08 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-08 13:28 [igt-dev] [PATCH i-g-t] tests/xe: Add a test that launches the xe driver live kunit tests Mauro Carvalho Chehab
2023-06-08 13:32 ` [igt-dev] ✗ Fi.CI.BUILD: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox