mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
Add a test that runs all available completions
Meaning completions where we have the command. No completion should be printing anything when sourced. This could have prevented #8896
This commit is contained in:
parent
c0fc80cb59
commit
7e2cba01fb
1 changed files with 9 additions and 0 deletions
9
tests/checks/check-completions.fish
Normal file
9
tests/checks/check-completions.fish
Normal file
|
@ -0,0 +1,9 @@
|
|||
#RUN: %fish -C 'set -l fish %fish' %s
|
||||
# Test all completions where the command exists
|
||||
|
||||
# No output is good output
|
||||
for f in $__fish_data_dir/completions/*.fish
|
||||
if command -q (string replace -r '.*/([^/]+).fish' '$1' $f)
|
||||
$fish $f
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue