nixpkgs/nixos/tests/packagekit.nix

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

31 lines
736 B
Nix
Raw Normal View History

2019-11-05 14:42:44 -05:00
import ./make-test-python.nix (
{ pkgs, ... }:
{
2019-04-24 16:45:29 +08:00
name = "packagekit";
meta = with pkgs.lib.maintainers; {
2019-04-24 16:45:29 +08:00
maintainers = [ peterhoeg ];
};
2022-03-21 00:15:30 +01:00
nodes.machine =
{ ... }:
{
2019-04-24 16:45:29 +08:00
environment.systemPackages = with pkgs; [ dbus ];
services.packagekit = {
enable = true;
};
};
2019-04-24 16:45:29 +08:00
testScript = ''
2019-11-05 14:42:44 -05:00
start_all()
2019-04-24 16:45:29 +08:00
# send a dbus message to activate the service
2019-11-05 14:42:44 -05:00
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
2019-11-05 14:42:44 -05:00
machine.wait_for_unit("packagekit.service")
2019-04-24 16:45:29 +08:00
'';
}
)