1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/nixos/tests/packagekit.nix
2022-03-28 14:11:58 +02:00

26 lines
668 B
Nix

import ./make-test-python.nix ({ pkgs, ... }: {
name = "packagekit";
meta = with pkgs.lib.maintainers; {
maintainers = [ peterhoeg ];
};
nodes.machine = { ... }: {
environment.systemPackages = with pkgs; [ dbus ];
services.packagekit = {
enable = true;
};
};
testScript = ''
start_all()
# send a dbus message to activate the service
machine.succeed(
"dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect"
)
# so now it should be running
machine.wait_for_unit("packagekit.service")
'';
})