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
|
let
|
||||||
mkTest = { systemWide ? false }:
|
mkTest = { systemWide ? false , fullVersion ? false }:
|
||||||
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
testFile = pkgs.fetchurl {
|
testFile = pkgs.fetchurl {
|
||||||
@ -22,7 +22,7 @@ let
|
|||||||
testPlay32 = { inherit (pkgs.pkgsi686Linux) sox alsa-utils; };
|
testPlay32 = { inherit (pkgs.pkgsi686Linux) sox alsa-utils; };
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
name = "pulseaudio${lib.optionalString systemWide "-systemWide"}";
|
name = "pulseaudio${lib.optionalString fullVersion "Full"}${lib.optionalString systemWide "-systemWide"}";
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta = with pkgs.lib.maintainers; {
|
||||||
maintainers = [ synthetica ] ++ pkgs.pulseaudio.meta.maintainers;
|
maintainers = [ synthetica ] ++ pkgs.pulseaudio.meta.maintainers;
|
||||||
};
|
};
|
||||||
@ -35,6 +35,8 @@ let
|
|||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
support32Bit = true;
|
||||||
inherit systemWide;
|
inherit systemWide;
|
||||||
|
} // lib.optionalAttrs fullVersion {
|
||||||
|
package = pkgs.pulseaudioFull;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ testers.testPlay pkgs.pavucontrol ]
|
environment.systemPackages = [ testers.testPlay pkgs.pavucontrol ]
|
||||||
@ -66,6 +68,8 @@ let
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
in builtins.mapAttrs (key: val: mkTest val) {
|
in builtins.mapAttrs (key: val: mkTest val) {
|
||||||
user = { systemWide = false; };
|
user = { systemWide = false; fullVersion = false; };
|
||||||
system = { systemWide = true; };
|
system = { systemWide = true; fullVersion = false; };
|
||||||
|
userFull = { systemWide = false; fullVersion = true; };
|
||||||
|
systemFull = { systemWide = true; fullVersion = true; };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user