beets: test to validate gstreamer interop

This commit is contained in:
Julius de Bruijn 2022-08-03 23:51:43 +02:00
parent 141ec34c9a
commit bd0a5ce380

View file

@ -23,6 +23,10 @@
, version
, pluginOverrides ? { }
, disableAllPlugins ? false
# tests
, runCommand
, beets
}@inputs:
let
inherit (lib) attrNames attrValues concatMap;
@ -142,8 +146,26 @@ python3Packages.buildPythonApplication rec {
runHook postCheck
'';
passthru.plugins = allPlugins;
passthru.tests.gstreamer = runCommand "beets-gstreamer-test" {
meta.timeout = 60;
}
''
set -euo pipefail
export HOME=$(mktemp -d)
mkdir $out
cat << EOF > $out/config.yaml
replaygain:
backend: gstreamer
EOF
echo $out/config.yaml
${beets}/bin/beet -c $out/config.yaml > /dev/null
'';
meta = with lib; {
description = "Music tagger and library organizer";
homepage = "https://beets.io";