diff --git a/tests/checks/check-completions.fish b/tests/checks/check-completions.fish new file mode 100644 index 000000000..e9ce18cd1 --- /dev/null +++ b/tests/checks/check-completions.fish @@ -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