3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/packagekit.nix
Dominik Xaver Hörl 25bef2d8f9 treewide: simplify pkgs.stdenv.lib -> pkgs.lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00

27 lines
690 B
Nix

import ./make-test-python.nix ({ pkgs, ... }: {
name = "packagekit";
meta = with pkgs.lib.maintainers; {
maintainers = [ peterhoeg ];
};
machine = { ... }: {
environment.systemPackages = with pkgs; [ dbus ];
services.packagekit = {
enable = true;
backend = "test_nop";
};
};
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")
'';
})