nixos/tests/pulseaudio: add test for pacmd

Note that `pacmd` only connects to user session daemons,
so we have to skip it in system wide mode.
This commit is contained in:
Yarny0 2022-08-18 08:42:41 +02:00
parent 3871f8be8d
commit 64d256ab15

View file

@ -60,6 +60,11 @@ let
''}
machine.screenshot("testPlay")
${lib.optionalString (!systemWide) ''
machine.send_chars("pacmd info && touch /tmp/pacmd_success\n")
machine.wait_for_file("/tmp/pacmd_success")
''}
# Pavucontrol only loads when Pulseaudio is running. If it isn't, the
# text "Dummy Output" (sound device name) will never show.
machine.send_chars("pavucontrol\n")