Linux内核之blktests简单介绍
blktests
最近遇到了个补丁引起的blktests测试问题,顺便了解了下blktests。

blktests是Linux内核块设备和存储堆栈的一个测试框架。它的灵感来自于xfstests文件系统测试框架。

blktests is a test framework for the Linux kernel block layer and storage stack. It is inspired by the xfstests filesystem testing framework. It was originally written by Omar Sandoval and announced in 2017.

简单使用
安装依赖
确保安装相关依赖:

bash (>= 4.2)
GNU coreutils
GNU awk
util-linux
fio
gcc
make
有些测试可能要求更多组件:

e2fsprogs and xfsprogs
multipath-tools (Debian, openSUSE, Arch Linux) or device-mapper-multipath (Fedora)
dmsetup (Debian) or device-mapper (Fedora, openSUSE, Arch Linux)
rublk (cargo install --version=^0.1 rublk) for ublk test
编译安装
编译安装比较简单,和一般的程序一样,直接make,如需安装就make install,默认安装路径为/usr/local/blktests,如果需要修改安装路径可通过DESTDIR 或 prefix。

运行测试

。。。。。。

欢迎关注公众号:

Linux内核之blktests简单介绍_GNU

作者: Shell