diff mbox series

[meta-oe] blktests: Initial commit

Message ID 20250430225449.194437-1-alistair.francis@wdc.com
State New
Headers show
Series [meta-oe] blktests: Initial commit | expand

Commit Message

Alistair Francis April 30, 2025, 10:54 p.m. UTC
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 <alistair.francis@wdc.com>
---
 meta-oe/recipes-kernel/blktests/blktests.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/blktests/blktests.bb
diff mbox series

Patch

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/*"