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