nixpkgs/nixos/tests/packagekit.nix

31 lines
736 B
Nix
Raw Normal View History

import ./make-test-python.nix (
{ 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")
'';
}
)