2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "packagekit";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ peterhoeg ];
|
|
|
|
};
|
|
|
|
|
|
|
|
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")
|
|
|
|
'';
|
|
|
|
})
|