From 4f7e8bd6e19fa9b94975dac482cdd22d7d45d865 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Thu, 1 May 2025 08:54:49 +1000 Subject: [PATCH] blktests: Initial commit Add support for building the Linux blktests [1] into a guest image. Once booted the tests can be run with commands like this: ```shell cd /usr/blktests/; NVMET_TRTYPES=tcp ./check nvme/062 ``` 1: https://github.com/osandov/blktests Signed-off-by: Alistair Francis Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/blktests/blktests.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-kernel/blktests/blktests.bb diff --git a/meta-oe/recipes-kernel/blktests/blktests.bb b/meta-oe/recipes-kernel/blktests/blktests.bb new file mode 100644 index 0000000000..2fb6db9184 --- /dev/null +++ b/meta-oe/recipes-kernel/blktests/blktests.bb @@ -0,0 +1,19 @@ +SUMMARY = "Linux kernel block layer testing framework" +DESCRIPTION = "blktests is a test framework for the Linux kernel block layer and storage stack. It is inspired by the xfstests filesystem testing framework." +DEPENDS = "gnutls keyutils glib-2.0 libnl" +RDEPENDS:${PN} += " bash coreutils gawk util-linux fio" +LICENSE = "GPL-3.0-or-later" +LIC_FILES_CHKSUM = "file://LICENSES/GPL-3.0;md5=d32239bcb673463ab874e80d47fae504" + +SRCREV = "9aa2023312bfcdd6b31c24b6e4a4a5c2d4f870d2" +SRC_URI = " \ + git://github.com/osandov/blktests.git;nobranch=1;protocol=https \ + " + +S = "${WORKDIR}/git" + +inherit autotools-brokensep + +do_configure[noexec] = "1" + +FILES:${PN} = "/usr/blktests/*"