mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
24 lines
694 B
Nix
24 lines
694 B
Nix
import ./make-test.nix ({ pkgs, ... }: {
|
|
name = "packagekit";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ peterhoeg ];
|
|
};
|
|
|
|
machine = { ... }: {
|
|
environment.systemPackages = with pkgs; [ dbus ];
|
|
services.packagekit = {
|
|
enable = true;
|
|
backend = "test_nop";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
# 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->succeed("systemctl is-active packagekit.service");
|
|
'';
|
|
})
|