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 <alistair.francis@wdc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Alistair Francis 2025-05-01 08:54:49 +10:00 committed by Khem Raj
parent 2bfceb99a4
commit 4f7e8bd6e1
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

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