mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 09:45:25 +08:00
Add check to test all fish files with -n
This executes `fish --no-execute` a whole bunch of times in order to find syntax errors in our fish scripts. tests/ is exempt because it contains syntax errors on purpose. This is a great idea in principle, but it takes ~4s on my system.
This commit is contained in:
parent
70b8fb22e1
commit
22c0054c1e
8
tests/checks/check-all-fish-files.fish
Normal file
8
tests/checks/check-all-fish-files.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
#RUN: %fish -C 'set -l fish %fish' %s
|
||||
# Test ALL THE FISH FILES
|
||||
# in share/, that is - the tests are exempt because they contain syntax errors, on purpose
|
||||
|
||||
for file in $__fish_data_dir/**.fish
|
||||
$fish -n $file
|
||||
end
|
||||
# No output is good output
|
Loading…
Reference in New Issue
Block a user