nixpkgs/nixos/tests/fish.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
760 B
Nix
Raw Permalink Normal View History

2024-12-21 22:27:11 +02:00
{
name = "fish";
2024-12-21 22:27:11 +02:00
nodes.machine =
{ pkgs, ... }:
2024-12-21 22:27:11 +02:00
{
programs.fish.enable = true;
environment.systemPackages = with pkgs; [
coreutils
procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432
];
# Avoid slow man cache build
documentation.man.enable = false;
2024-12-21 22:27:11 +02:00
};
2024-12-21 22:27:11 +02:00
testScript =
#python
''
2019-11-09 19:40:32 +01:00
start_all()
machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish")
machine.wait_for_file("/etc/fish/generated_completions/kill.fish")
machine.succeed(
2024-12-21 22:24:56 +02:00
"fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.cache/fish/generated_completions$'"
2019-11-09 19:40:32 +01:00
)
'';
2024-12-21 22:27:11 +02:00
}