mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
58 lines
1.6 KiB
Nix
58 lines
1.6 KiB
Nix
import ./make-test-python.nix (
|
|
{ pkgs, lib, ... }:
|
|
{
|
|
name = "deepin";
|
|
|
|
meta.maintainers = lib.teams.deepin.members;
|
|
|
|
nodes.machine =
|
|
{ ... }:
|
|
{
|
|
imports = [
|
|
./common/user-account.nix
|
|
];
|
|
|
|
virtualisation.memorySize = 2048;
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager = {
|
|
lightdm.enable = true;
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "alice";
|
|
};
|
|
};
|
|
|
|
services.xserver.desktopManager.deepin.enable = true;
|
|
};
|
|
|
|
testScript =
|
|
{ nodes, ... }:
|
|
let
|
|
user = nodes.machine.users.users.alice;
|
|
in
|
|
''
|
|
with subtest("Wait for login"):
|
|
machine.wait_for_x()
|
|
machine.wait_for_file("${user.home}/.Xauthority")
|
|
machine.succeed("xauth merge ${user.home}/.Xauthority")
|
|
|
|
with subtest("Check that logging in has given the user ownership of devices"):
|
|
machine.succeed("getfacl -p /dev/snd/timer | grep -q ${user.name}")
|
|
|
|
with subtest("Check if Deepin session components actually start"):
|
|
machine.wait_until_succeeds("pgrep -f dde-session-daemon")
|
|
machine.wait_for_window("dde-session-daemon")
|
|
machine.wait_until_succeeds("pgrep -f dde-desktop")
|
|
machine.wait_for_window("dde-desktop")
|
|
|
|
with subtest("Open deepin-terminal"):
|
|
machine.succeed("su - ${user.name} -c 'DISPLAY=:0 deepin-terminal >&2 &'")
|
|
machine.wait_for_window("deepin-terminal")
|
|
machine.sleep(20)
|
|
machine.screenshot("screen")
|
|
'';
|
|
}
|
|
)
|