mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 03:51:23 +08:00
4d052da922
We have now entirely switched the script tests to littlecheck. Note: This adjusts the complete_directories test, because it removes a directory that was created before by a .in test. There's no real change in behavior. This does require the test directory be cleaned, or the tests will fail. test_util gets to stay for a while longer, because it sets up the testing env (locale and such).
27 lines
742 B
Fish
27 lines
742 B
Fish
#RUN: %fish %s
|
|
cd ..
|
|
mkdir -p test/data/abc
|
|
mkdir -p test/data/abcd
|
|
touch test/data/af
|
|
touch test/data/abcdf
|
|
mkdir -p test/data/xy
|
|
mkdir -p test/data/xyz
|
|
touch test/data/xyf
|
|
touch test/data/xyzf
|
|
__fish_complete_directories test/z
|
|
# No match - no output!
|
|
__fish_complete_directories test/d
|
|
#CHECK: test/data/ Directory
|
|
#CHECK: test/buildroot/ Directory
|
|
__fish_complete_directories test/data
|
|
#CHECK: test/data/ Directory
|
|
__fish_complete_directories test/data/
|
|
#CHECK: test/data/abc/ Directory
|
|
#CHECK: test/data/abcd/ Directory
|
|
#CHECK: test/data/fish/ Directory
|
|
#CHECK: test/data/xy/ Directory
|
|
#CHECK: test/data/xyz/ Directory
|
|
__fish_complete_directories test/data/abc 'abc dirs'
|
|
#CHECK: test/data/abc/ abc dirs
|
|
#CHECK: test/data/abcd/ abc dirs
|