fio: run unit tests during checkPhase

This commit is contained in:
Alex James
2026-03-06 20:30:26 -08:00
parent 4ad51422b8
commit db6eb61d6c
+12
View File
@@ -6,6 +6,7 @@
makeWrapper,
libaio,
pkg-config,
cunit,
python3,
zlib,
withGnuplot ? false,
@@ -34,6 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
];
buildInputs = [
cunit
python3
zlib
]
@@ -76,6 +78,16 @@ stdenv.mkDerivation (finalAttrs: {
wrapPythonProgramsIn "$out/bin" "$out ''${pythonPath[*]}"
'';
doCheck = true;
checkPhase = ''
runHook preCheck
./unittests/unittest
runHook postCheck
'';
meta = {
description = "Flexible IO Tester - an IO benchmark tool";
homepage = "https://git.kernel.dk/cgit/fio/";