2024-04-12 10:19:32 +00:00
|
|
|
#RUN: %fish -C 'set -l fish %fish' %s
|
2024-04-25 19:52:13 +00:00
|
|
|
# disable on CI ASAN because it's suuuper slow
|
|
|
|
#REQUIRES: test -z "$FISH_CI_SAN"
|
2022-04-21 15:19:36 +00:00
|
|
|
# Test all completions where the command exists
|
|
|
|
|
|
|
|
# No output is good output
|
|
|
|
for f in $__fish_data_dir/completions/*.fish
|
2022-04-21 15:28:55 +00:00
|
|
|
if type -q (string replace -r '.*/([^/]+).fish' '$1' $f)
|
2022-04-21 15:40:25 +00:00
|
|
|
set -l out (source $f 2>&1 | string collect)
|
2022-04-21 15:28:55 +00:00
|
|
|
test -n "$out"
|
|
|
|
and echo -- OUTPUT from $f: $out
|
2022-04-21 15:19:36 +00:00
|
|
|
end
|
|
|
|
end
|