Unverified Commit db6eb61d authored by Alex James's avatar Alex James
Browse files

fio: run unit tests during checkPhase

parent 4ad51422
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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/";