fio: run unit tests during checkPhase

This commit is contained in:
Alex James 2025-11-02 16:02:09 -08:00
parent 4ad51422b8
commit db6eb61d6c
No known key found for this signature in database
GPG key ID: 4729B829AC5FCC72

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/";