My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/packagekit.nix

25 lines
668 B

import ./make-test-python.nix ({ pkgs, ... }: {
name = "packagekit";
meta = with pkgs.lib.maintainers; {
maintainers = [ peterhoeg ];
};
nodes.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")
'';
})