nixpkgs/nixos/tests/packagekit.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
654 B
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
{
name = "packagekit";
meta = with pkgs.lib.maintainers; {
maintainers = [ peterhoeg ];
};
2019-04-24 16:45:29 +08:00
nodes.machine =
{ ... }:
{
environment.systemPackages = with pkgs; [ dbus ];
services.packagekit = {
enable = true;
};
};
testScript = ''
start_all()
2019-04-24 16:45:29 +08:00
# 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"
)
2019-04-24 16:45:29 +08:00
# so now it should be running
machine.wait_for_unit("packagekit.service")
'';
}