2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "fish";
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine =
|
2020-04-24 23:36:52 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.fish.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
coreutils
|
|
|
|
procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432
|
|
|
|
];
|
2024-05-15 15:35:15 +00:00
|
|
|
# TODO: remove if/when #267880 is merged and this is a default
|
|
|
|
services.logrotate.enable = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
start_all()
|
|
|
|
machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish")
|
|
|
|
machine.wait_for_file("/etc/fish/generated_completions/kill.fish")
|
|
|
|
machine.succeed(
|
|
|
|
"fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.local/share/fish/generated_completions$'"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|