1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/nixos/tests/packagekit.nix

27 lines
697 B
Nix
Raw Normal View History

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