1import ./make-test-python.nix ({ pkgs, ... }: {
2 name = "fish";
3
4 nodes.machine =
5 { pkgs, ... }:
6
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 };
16
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 '';
26})