python312Packages.homematicip: 1.1.2 -> 1.1.3 (#356780)
[NixPkgs.git] / nixos / tests / fish.nix
blobc9a1bef51478e2cb63b56a71ca05dc367c970d2a
1 import ./make-test-python.nix ({ pkgs, ... }: {
2   name = "fish";
4   nodes.machine =
5     { pkgs, ... }:
7     {
8       programs.fish.enable = true;
9       environment.systemPackages = with pkgs; [
10         coreutils
11         procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432
12       ];
13       # TODO: remove if/when #267880 is merged and this is a default
14       services.logrotate.enable = false;
15     };
17   testScript =
18     ''
19       start_all()
20       machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish")
21       machine.wait_for_file("/etc/fish/generated_completions/kill.fish")
22       machine.succeed(
23           "fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.local/share/fish/generated_completions$'"
24       )
25     '';