1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/nixos/tests/packagekit.nix

26 lines
662 B
Nix
Raw Normal View History

2019-11-05 19:42:44 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
2019-04-24 09:45:29 +01:00
name = "packagekit";
meta = with pkgs.lib.maintainers; {
2019-04-24 09:45:29 +01:00
maintainers = [ peterhoeg ];
};
machine = { ... }: {
environment.systemPackages = with pkgs; [ dbus ];
services.packagekit = {
enable = true;
};
};
testScript = ''
2019-11-05 19:42:44 +00:00
start_all()
2019-04-24 09:45:29 +01:00
# send a dbus message to activate the service
2019-11-05 19:42:44 +00: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 09:45:29 +01:00
# so now it should be running
2019-11-05 19:42:44 +00:00
machine.wait_for_unit("packagekit.service")
2019-04-24 09:45:29 +01:00
'';
})