mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 05:17:34 +00:00
More git-ignore xtests
The new tests make sure that the git-ignored files are skipped in every view.
This commit is contained in:
parent
d8b21a33b5
commit
06c899cac0
86
xtests/git-ignore.toml
Normal file
86
xtests/git-ignore.toml
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
# Git-ignoring
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore /testcases/git2/ignoreds"
|
||||||
|
environment = { COLUMNS = "80" }
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_grid_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'env', 'grid', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -1’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore -1 /testcases/git2/ignoreds"
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_lines_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'oneline', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -l’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore -l /testcases/git2/ignoreds"
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_long_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'long', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -lG’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore -lG /testcases/git2/ignoreds"
|
||||||
|
environment = { COLUMNS = "150" }
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_long_grid_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'env', 'long', 'grid', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -lR’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore -lR /testcases/git2/ignoreds"
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_long_recurse_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'long', 'recurse', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -lT’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore -lT /testcases/git2/ignoreds"
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_long_tree_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'long', 'tree', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -T’ skips Git-ignored files"
|
||||||
|
shell = "exa --git-ignore -T /testcases/git2/ignoreds"
|
||||||
|
stdout = { file = "outputs/git2_ignoreds_tree_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'tree', 'git-ignore' ]
|
||||||
|
|
||||||
|
|
||||||
|
# Recursive git-ignoring
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -lR’ skips Git-ignored files in subfolders"
|
||||||
|
shell = "exa --git-ignore -lR /testcases/git2"
|
||||||
|
stdout = { file = "outputs/git2_long_recurse_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'long', 'recurse', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -lT’ skips Git-ignored files in subfolders"
|
||||||
|
shell = "exa --git-ignore -lT /testcases/git2"
|
||||||
|
stdout = { file = "outputs/git2_long_tree_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'long', 'tree', 'git-ignore' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa --git-ignore -T’ skips Git-ignored files in subfolders"
|
||||||
|
shell = "exa --git-ignore -T /testcases/git2"
|
||||||
|
stdout = { file = "outputs/git2_tree_gitignore.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'tree', 'git-ignore' ]
|
@ -181,22 +181,3 @@ stdout = { file = "outputs/files_long_grid_1col.ansitxt" }
|
|||||||
stderr = { empty = true }
|
stderr = { empty = true }
|
||||||
status = 0
|
status = 0
|
||||||
tags = [ 'env', 'long', 'grid', 'git' ]
|
tags = [ 'env', 'long', 'grid', 'git' ]
|
||||||
|
|
||||||
|
|
||||||
# Git-ignoring
|
|
||||||
|
|
||||||
[[cmd]]
|
|
||||||
name = "‘exa --git-ignore -lR’ skips Git-ignored files"
|
|
||||||
shell = "exa --git-ignore -lR /testcases/git2"
|
|
||||||
stdout = { file = "outputs/git2_long_recurse_gitignore.ansitxt" }
|
|
||||||
stderr = { empty = true }
|
|
||||||
status = 0
|
|
||||||
tags = [ 'long', 'git-ignore' ]
|
|
||||||
|
|
||||||
[[cmd]]
|
|
||||||
name = "‘exa --git-ignore -lT’ skips Git-ignored files"
|
|
||||||
shell = "exa --git-ignore -lT /testcases/git2"
|
|
||||||
stdout = { file = "outputs/git2_long_tree_gitignore.ansitxt" }
|
|
||||||
stderr = { empty = true }
|
|
||||||
status = 0
|
|
||||||
tags = [ 'long', 'git-ignore' ]
|
|
||||||
|
@ -18,6 +18,15 @@ stderr = { empty = true }
|
|||||||
status = 0
|
status = 0
|
||||||
tags = [ 'env', 'grid', 'across' ]
|
tags = [ 'env', 'grid', 'across' ]
|
||||||
|
|
||||||
|
[[cmd]]
|
||||||
|
name = "‘exa -d’ displays, ‘.’, ‘..’, and ‘/’ correctly"
|
||||||
|
shell = "exa -d . .. /"
|
||||||
|
environment = { COLUMNS = "80" }
|
||||||
|
stdout = { file = "outputs/dirs_grid.ansitxt" }
|
||||||
|
stderr = { empty = true }
|
||||||
|
status = 0
|
||||||
|
tags = [ 'env', 'grid', 'list-dirs' ]
|
||||||
|
|
||||||
|
|
||||||
# recurse tests
|
# recurse tests
|
||||||
|
|
||||||
|
1
xtests/outputs/dirs_grid.ansitxt
Normal file
1
xtests/outputs/dirs_grid.ansitxt
Normal file
@ -0,0 +1 @@
|
|||||||
|
[1;34m.[0m [1;34m..[0m [1;34m/[0m
|
1
xtests/outputs/git2_ignoreds_grid_gitignore.ansitxt
Normal file
1
xtests/outputs/git2_ignoreds_grid_gitignore.ansitxt
Normal file
@ -0,0 +1 @@
|
|||||||
|
[38;5;92mmusic.m4a[0m [1;34mnested[0m
|
2
xtests/outputs/git2_ignoreds_lines_gitignore.ansitxt
Normal file
2
xtests/outputs/git2_ignoreds_lines_gitignore.ansitxt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[38;5;92mmusic.m4a[0m
|
||||||
|
[1;34mnested[0m
|
2
xtests/outputs/git2_ignoreds_long_gitignore.ansitxt
Normal file
2
xtests/outputs/git2_ignoreds_long_gitignore.ansitxt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.[1;33mr[31mw[0m[38;5;244m-[33mr[31mw[38;5;244m-[33mr[38;5;244m--[0m [1;32m0[0m cassowary [34m 1 Jan 12:34[0m [38;5;92mmusic.m4a[0m
|
||||||
|
[1;34md[33mr[31mw[32mx[0m[33mr[31mw[32mx[33mr[38;5;244m-[32mx[0m [38;5;244m-[0m cassowary [34m 1 Jan 12:34[0m [1;34mnested[0m
|
1
xtests/outputs/git2_ignoreds_long_grid_gitignore.ansitxt
Normal file
1
xtests/outputs/git2_ignoreds_long_grid_gitignore.ansitxt
Normal file
@ -0,0 +1 @@
|
|||||||
|
.[1;33mr[31mw[0m[38;5;244m-[33mr[31mw[38;5;244m-[33mr[38;5;244m--[0m [1;32m0[0m cassowary [34m 1 Jan 12:34[0m [38;5;92mmusic.m4a[0m [1;34md[33mr[31mw[32mx[0m[33mr[31mw[32mx[33mr[38;5;244m-[32mx[0m [38;5;244m-[0m cassowary [34m 1 Jan 12:34[0m [1;34mnested[0m
|
@ -0,0 +1,5 @@
|
|||||||
|
.[1;33mr[31mw[0m[38;5;244m-[33mr[31mw[38;5;244m-[33mr[38;5;244m--[0m [1;32m0[0m cassowary [34m 1 Jan 12:34[0m [38;5;92mmusic.m4a[0m
|
||||||
|
[1;34md[33mr[31mw[32mx[0m[33mr[31mw[32mx[33mr[38;5;244m-[32mx[0m [38;5;244m-[0m cassowary [34m 1 Jan 12:34[0m [1;34mnested[0m
|
||||||
|
|
||||||
|
/testcases/git2/ignoreds/nested:
|
||||||
|
.[1;33mr[31mw[0m[38;5;244m-[33mr[31mw[38;5;244m-[33mr[38;5;244m--[0m [1;32m0[0m cassowary [34m 1 Jan 12:34[0m [38;5;92mfunky chicken.m4a[0m
|
4
xtests/outputs/git2_ignoreds_long_tree_gitignore.ansitxt
Normal file
4
xtests/outputs/git2_ignoreds_long_tree_gitignore.ansitxt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[1;34md[33mr[31mw[32mx[0m[33mr[31mw[32mx[33mr[38;5;244m-[32mx[0m [38;5;244m-[0m cassowary [34m 1 Jan 12:34[0m [36m/testcases/git2/[1;34mignoreds[0m
|
||||||
|
.[1;33mr[31mw[0m[38;5;244m-[33mr[31mw[38;5;244m-[33mr[38;5;244m--[0m [1;32m0[0m cassowary [34m 1 Jan 12:34[0m [38;5;244m├──[0m [38;5;92mmusic.m4a[0m
|
||||||
|
[1;34md[33mr[31mw[32mx[0m[33mr[31mw[32mx[33mr[38;5;244m-[32mx[0m [38;5;244m-[0m cassowary [34m 1 Jan 12:34[0m [38;5;244m└──[0m [1;34mnested[0m
|
||||||
|
.[1;33mr[31mw[0m[38;5;244m-[33mr[31mw[38;5;244m-[33mr[38;5;244m--[0m [1;32m0[0m cassowary [34m 1 Jan 12:34[0m [38;5;244m └──[0m [38;5;92mfunky chicken.m4a[0m
|
4
xtests/outputs/git2_ignoreds_tree_gitignore.ansitxt
Normal file
4
xtests/outputs/git2_ignoreds_tree_gitignore.ansitxt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[36m/testcases/git2/[1;34mignoreds[0m
|
||||||
|
[38;5;244m├──[0m [38;5;92mmusic.m4a[0m
|
||||||
|
[38;5;244m└──[0m [1;34mnested[0m
|
||||||
|
[38;5;244m └──[0m [38;5;92mfunky chicken.m4a[0m
|
12
xtests/outputs/git2_tree_gitignore.ansitxt
Normal file
12
xtests/outputs/git2_tree_gitignore.ansitxt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[36m/testcases/[1;34mgit2[0m
|
||||||
|
[38;5;244m├──[0m [1;34mdeeply[0m
|
||||||
|
[38;5;244m│ └──[0m [1;34mnested[0m
|
||||||
|
[38;5;244m│ ├──[0m [1;34mdirectory[0m
|
||||||
|
[38;5;244m│ │ ├──[0m l8st
|
||||||
|
[38;5;244m│ │ └──[0m upd8d
|
||||||
|
[38;5;244m│ └──[0m [1;34mrepository[0m
|
||||||
|
[38;5;244m│ └──[0m subfile
|
||||||
|
[38;5;244m└──[0m [1;34mignoreds[0m
|
||||||
|
[38;5;244m ├──[0m [38;5;92mmusic.m4a[0m
|
||||||
|
[38;5;244m └──[0m [1;34mnested[0m
|
||||||
|
[38;5;244m └──[0m [38;5;92mfunky chicken.m4a[0m
|
Loading…
Reference in New Issue
Block a user