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