about summary refs log tree commit diff
path: root/nixos/tests/pulseaudio.nix
AgeCommit message (Collapse)AuthorFilesLines
2022-08-18nixos/tests/pulseaudio: add test for pacmdYarny01-0/+5
Note that `pacmd` only connects to user session daemons, so we have to skip it in system wide mode.
2022-08-18nixos/tests/pulseaudio: add tests for pkgs.pulseaudioFullYarny01-4/+8
2022-08-18nixos/pulseaudio: add pulse-access groupYarny01-1/+1
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-18nixos/tests/pulseaudio: fix pavucontrol detectionYarny01-2/+2
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-18nixos/tests/pulseaudio: fix url to mp3 sample fileYarny01-1/+1
old URL returns 404
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2021-12-06nixosTests.pulseAudio: initPatrick Hilhorst1-0/+71