fio: run unit tests during checkPhase
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user