mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
nixos/tests/pulseaudio: add tests for pkgs.pulseaudioFull
This commit is contained in:
parent
7ba079505a
commit
78e5c0c97f
@ -1,5 +1,5 @@
|
||||
let
|
||||
mkTest = { systemWide ? false }:
|
||||
mkTest = { systemWide ? false , fullVersion ? false }:
|
||||
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
let
|
||||
testFile = pkgs.fetchurl {
|
||||
@ -22,7 +22,7 @@ let
|
||||
testPlay32 = { inherit (pkgs.pkgsi686Linux) sox alsa-utils; };
|
||||
};
|
||||
in {
|
||||
name = "pulseaudio${lib.optionalString systemWide "-systemWide"}";
|
||||
name = "pulseaudio${lib.optionalString fullVersion "Full"}${lib.optionalString systemWide "-systemWide"}";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ synthetica ] ++ pkgs.pulseaudio.meta.maintainers;
|
||||
};
|
||||
@ -35,6 +35,8 @@ let
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
inherit systemWide;
|
||||
} // lib.optionalAttrs fullVersion {
|
||||
package = pkgs.pulseaudioFull;
|
||||
};
|
||||
|
||||
environment.systemPackages = [ testers.testPlay pkgs.pavucontrol ]
|
||||
@ -66,6 +68,8 @@ let
|
||||
'';
|
||||
});
|
||||
in builtins.mapAttrs (key: val: mkTest val) {
|
||||
user = { systemWide = false; };
|
||||
system = { systemWide = true; };
|
||||
user = { systemWide = false; fullVersion = false; };
|
||||
system = { systemWide = true; fullVersion = false; };
|
||||
userFull = { systemWide = false; fullVersion = true; };
|
||||
systemFull = { systemWide = true; fullVersion = true; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user