浏览代码

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>
Alistair Francis 1 月之前
父节点
当前提交
4f7e8bd6e1
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      meta-oe/recipes-kernel/blktests/blktests.bb

+ 19 - 0
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/*"