Unverified Commit 82c689f1 authored by phanirithvij's avatar phanirithvij
Browse files

efibooteditor: enable tests

parent 78aad0ac
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -39,7 +39,11 @@ stdenv.mkDerivation (finalAttrs: {
        'sh -c "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY efibooteditor"'
  '';

  env.BUILD_VERSION = "v${finalAttrs.version}";
  env = {
    LANG = "C.UTF8";
    BUILD_VERSION = "v${finalAttrs.version}";
  };

  cmakeBuildType = "MinSizeRel";
  cmakeFlags = [ "-DQT_VERSION_MAJOR=6" ];

@@ -47,6 +51,15 @@ stdenv.mkDerivation (finalAttrs: {
    install -Dm644 $src/LICENSE.txt $out/share/licenses/efibooteditor/LICENSE
  '';

  doCheck = true;
  checkPhase = ''
    runHook preCheck

    ctest --output-on-failure

    runHook postCheck
  '';

  meta = {
    description = "Boot Editor for (U)EFI based systems";
    homepage = "https://github.com/Neverous/efibooteditor";