Install and build blktests
masterBuild the blktests framework using make. You can install it to a specific location using make install. By default, it installs to /usr/local/blktests, but you can override this using the DESTDIR and/or prefix variables.
Prerequisites
Ensure the following minimal dependencies are installed:
bash(>= 4.3)GNU coreutilsGNU awkutil-linuxfiogccmakegetconfsystemd-udev(udevadm)
Optional dependencies for specific tests:
- Filesystem tools:
e2fsprogs,xfsprogs,f2fs-tools,btrfs-progs - NVMe:
nvme-cli - Multipath:
multipath-tools(Debian, openSUSE, Arch) ordevice-mapper-multipath(Fedora) - NBD:
nbd-clientandnbd-server(Debian) ornbd(Fedora, openSUSE, Arch) - Device Mapper:
dmsetup(Debian) ordevice-mapper(Fedora, openSUSE, Arch) - Ublk:
rublk(install viacargo install --version=^0.1 rublk) - NVMe-TCP zero-copy offload:
python3,ethtool,iproute2
make
# To install to a custom location:
make install DESTDIR=/path/to/dest prefix=/custom/prefix