* [Buildroot] [PATCH next 1/1] support/testing/tests/package/test_kmscube: new runtime test
@ 2023-08-10 17:53 Julien Olivain
2023-08-10 19:48 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain @ 2023-08-10 17:53 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Note:
This runtime test needs the kmscube update proposed in [1] to succeed.
[1] https://patchwork.ozlabs.org/project/buildroot/patch/20230809205434.312601-1-ju.o@free.fr/
---
DEVELOPERS | 2 +
support/testing/tests/package/test_kmscube.py | 45 +++++++++++++++++++
.../package/test_kmscube/linux-vkms.fragment | 1 +
3 files changed, 48 insertions(+)
create mode 100644 support/testing/tests/package/test_kmscube.py
create mode 100644 support/testing/tests/package/test_kmscube/linux-vkms.fragment
diff --git a/DEVELOPERS b/DEVELOPERS
index d41e717b45..0bed35fd8e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1787,6 +1787,8 @@ F: support/testing/tests/package/test_hwloc.py
F: support/testing/tests/package/test_iperf3.py
F: support/testing/tests/package/test_kexec.py
F: support/testing/tests/package/test_kexec/
+F: support/testing/tests/package/test_kmscube.py
+F: support/testing/tests/package/test_kmscube/
F: support/testing/tests/package/test_libjxl.py
F: support/testing/tests/package/test_lrzip.py
F: support/testing/tests/package/test_lzip.py
diff --git a/support/testing/tests/package/test_kmscube.py b/support/testing/tests/package/test_kmscube.py
new file mode 100644
index 0000000000..0ddeb67939
--- /dev/null
+++ b/support/testing/tests/package/test_kmscube.py
@@ -0,0 +1,45 @@
+import os
+
+import infra.basetest
+
+
+class TestKmsCube(infra.basetest.BRTest):
+ config = \
+ """
+ BR2_aarch64=y
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
+ BR2_LINUX_KERNEL=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.44"
+ BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+ BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
+ BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
+ BR2_PACKAGE_KMSCUBE=y
+ BR2_PACKAGE_LIBDRM=y
+ BR2_PACKAGE_MESA3D=y
+ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
+ BR2_PACKAGE_MESA3D_LLVM=y
+ BR2_PACKAGE_MESA3D_OPENGL_EGL=y
+ BR2_PACKAGE_MESA3D_OPENGL_ES=y
+ BR2_TARGET_ROOTFS_CPIO=y
+ BR2_TARGET_ROOTFS_CPIO_GZIP=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ """.format(
+ infra.filepath("tests/package/test_kmscube/linux-vkms.fragment"))
+
+ def test_run(self):
+ img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
+ kern = os.path.join(self.builddir, "images", "Image")
+ self.emulator.boot(arch="aarch64",
+ kernel=kern,
+ kernel_cmdline=["console=ttyAMA0"],
+ options=["-M", "virt",
+ "-cpu", "cortex-a57",
+ "-smp", "4",
+ "-m", "256M",
+ "-initrd", img])
+ self.emulator.login()
+
+ cmd = "kmscube --vmode=640x480 --count=10"
+ self.assertRunOk(cmd, timeout=30)
diff --git a/support/testing/tests/package/test_kmscube/linux-vkms.fragment b/support/testing/tests/package/test_kmscube/linux-vkms.fragment
new file mode 100644
index 0000000000..ec2ed4460c
--- /dev/null
+++ b/support/testing/tests/package/test_kmscube/linux-vkms.fragment
@@ -0,0 +1 @@
+CONFIG_DRM_VKMS=y
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH next 1/1] support/testing/tests/package/test_kmscube: new runtime test
2023-08-10 17:53 [Buildroot] [PATCH next 1/1] support/testing/tests/package/test_kmscube: new runtime test Julien Olivain
@ 2023-08-10 19:48 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-10 19:48 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
On Thu, 10 Aug 2023 19:53:19 +0200
Julien Olivain <ju.o@free.fr> wrote:
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Note:
> This runtime test needs the kmscube update proposed in [1] to succeed.
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-10 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 17:53 [Buildroot] [PATCH next 1/1] support/testing/tests/package/test_kmscube: new runtime test Julien Olivain
2023-08-10 19:48 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox