3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

7 commits

Author SHA1 Message Date
Yarny0 64d256ab15 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.
2022-08-18 16:51:21 +02:00
Yarny0 78e5c0c97f nixos/tests/pulseaudio: add tests for pkgs.pulseaudioFull 2022-08-18 16:49:18 +02:00
Yarny0 7ba079505a nixos/pulseaudio: add pulse-access group
According to pulseaudio(1), a system wide pulseaudio instance
can only be accessed by members of the `pulse-access` group.
This name seems to be hardcoded in
pulseaudio -- I didn't find any switch to change it.
We need to define the group so users can connect to the deamon.

This commit also fixes the systemwide pulseaudio vm test:
Previously, the test user `alice`
was just a member of the `audio` group.
This blocked access to the daemon and failed the test.
The commit changes the group assignment and fixes the vm test.
2022-08-18 16:49:18 +02:00
Yarny0 0fd2538678 nixos/tests/pulseaudio: fix pavucontrol detection
The test tries to detect the presence of pavucontrol's
window by looking for the tab label "Playback".
However, the OCR mechanism fails to resolve the
text, possibly due to the grey background color.

To fix this issue, we instead look for the name of the
sound device ("Dummy Output") which gets resolved by OCR.

Note: Strangely, the tab "Playback" *is* correctly
resolved when the test is run in interactive mode.
This might be due to the changed screen resolution,
but I didn't investigate further.
2022-08-18 16:49:18 +02:00
Yarny0 7df2bb1902 nixos/tests/pulseaudio: fix url to mp3 sample file
old URL returns 404
2022-08-18 16:49:18 +02:00
Robert Hensing aa0f27abb0 treewide: machine -> nodes.machine 2022-03-28 14:11:58 +02:00
Patrick Hilhorst 5e29d3ce2e
nixosTests.pulseAudio: init 2021-12-06 17:27:20 +01:00