strawberry: enable testing/checkPhase (#429449)

This commit is contained in:
Aleksana
2025-08-01 11:51:44 +08:00
committed by GitHub
+11
View File
@@ -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"