Unverified Commit 0a42a464 authored by Sergei Zimmerman's avatar Sergei Zimmerman
Browse files

prusa-slicer: use ctestCheckHook

parent be772126
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
  heatshrink,
  catch2,
  webkitgtk_4_0,
  ctestCheckHook,
  withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
  systemd,
  wxGTK-override ? null,
@@ -205,16 +206,12 @@ stdenv.mkDerivation (finalAttrs: {
  '';

  doCheck = true;

  checkPhase = ''
    runHook preCheck

    ctest \
      --force-new-ctest-process \
      -E 'libslic3r_tests|sla_print_tests'

    runHook postCheck
  '';
  nativeCheckInputs = [ ctestCheckHook ];
  checkFlags = [
    "--force-new-ctest-process"
    "-E"
    "libslic3r_tests|sla_print_tests"
  ];

  meta =
    with lib;