evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / in / installShellFiles / tests / install-completion-output.nix
blob380b241e4f01773bcb317f3dad1d5bffcee29114
2   lib,
3   installShellFiles,
4   runCommandLocal,
5 }:
7 runCommandLocal "install-shell-files--install-completion-output"
8   {
9     outputs = [
10       "out"
11       "bin"
12     ];
13     nativeBuildInputs = [ installShellFiles ];
14     meta.platforms = lib.platforms.all;
15   }
16   ''
17     echo foo > foo
19     installShellCompletion --bash foo
21     # assert it didn't go into $out
22     [[ ! -f $out/share/bash-completion/completions/foo ]]
24     cmp foo ''${!outputBin:?}/share/bash-completion/completions/foo
26     touch $out
27   ''