evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / in / installShellFiles / tests / install-completion.nix
blob2738dd647f5662dcc61eb2e3fb39efe04ba2a90a
2   lib,
3   installShellFiles,
4   runCommandLocal,
5 }:
7 runCommandLocal "install-shell-files--install-completion"
8   {
9     nativeBuildInputs = [ installShellFiles ];
10     meta.platforms = lib.platforms.all;
11   }
12   ''
13     echo foo > foo
14     echo bar > bar
15     echo baz > baz
16     echo qux > qux.zsh
17     echo quux > quux
19     installShellCompletion --bash foo bar --zsh baz qux.zsh --fish quux
21     cmp foo $out/share/bash-completion/completions/foo
22     cmp bar $out/share/bash-completion/completions/bar
23     cmp baz $out/share/zsh/site-functions/_baz
24     cmp qux.zsh $out/share/zsh/site-functions/_qux
25     cmp quux $out/share/fish/vendor_completions.d/quux
26   ''