mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
fio: run unit tests during checkPhase
This commit is contained in:
parent
4ad51422b8
commit
db6eb61d6c
1 changed files with 12 additions and 0 deletions
|
|
@ -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/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue