Commit 5717a43f authored by Eduard Bachmakov's avatar Eduard Bachmakov
Browse files

strawberry: enable testing/checkPhase

parent 952beb58
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -31,6 +31,9 @@
  util-linux,
  sparsehash,
  rapidjson,

  # tests
  gtest,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -99,6 +102,14 @@ stdenv.mkDerivation (finalAttrs: {

  cmakeFlags = [ (lib.cmakeBool "ENABLE_GPOD" false) ];

  checkInputs = [ gtest ];
  checkTarget = "strawberry_tests";
  preCheck = ''
    # defaults to "xcb" otherwise, which requires a display
    export QT_QPA_PLATFORM=offscreen
  '';
  doCheck = true;

  postInstall = ''
    qtWrapperArgs+=(
      --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"