test: check sort by extension

Co-authored-by: ariasuni <[email protected]>
This commit is contained in:
Siddhartha Sahu
2026-04-07 17:54:55 +02:00
committed by ariasuni
co-authored by ariasuni
parent 4f1ba6f79f
commit eed27ed05e
165 changed files with 420 additions and 20 deletions
+11
View File
@@ -133,6 +133,17 @@ touch icons/man.1 --date=@0
touch icons/marked.md --date=@0
# END test_icons
# BEGIN test_dirs-ext
mkdir -p dirs-ext
mkdir dirs-ext/test
mkdir dirs-ext/abc
mkdir dirs-ext/01.city
mkdir dirs-ext/02.apple
touch dirs-ext/a.txt --date=@0
touch dirs-ext/abc.mp3 --date=@0
touch dirs-ext/ab --date=@0
# END test_dirs_ext
# BEGIN set date
touch --date=@0 ./*;
# END set date
@@ -0,0 +1 @@
01.city 02.apple abc test ab abc.mp3 a.txt
+2
View File
@@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/itest --sort=extension --group-directories-first"
View File
+1
View File
@@ -0,0 +1 @@
01.city 02.apple ab abc test abc.mp3 a.txt
+2
View File
@@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/itest --sort=extension"
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,3 +1,4 @@
- dirs-ext
- git
- grid
- group
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - - nixbld 1 Jan 1970 git
drwxr-xr-x - - nixbld 1 Jan 1970 grid
drwxr-xr-x - - nixbld 1 Jan 1970 group
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,3 +1,4 @@
- dirs-ext
- git
- grid
- group
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,4 +1,5 @@
Permissions Size User Date Modified Name
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,4 +1,5 @@
Size Name
- dirs-ext
- git
- grid
- group
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+18
View File
@@ -1,3 +1,4 @@
6 dirs-ext
12 git
1002 grid
2 group
@@ -8,6 +9,23 @@
3 symlinks
2 time
tests/test_dir/dirs-ext:
2 01.city
2 02.apple
1 a.txt
1 ab
2 abc
1 abc.mp3
2 test
tests/test_dir/dirs-ext/01.city:
tests/test_dir/dirs-ext/02.apple:
tests/test_dir/dirs-ext/abc:
tests/test_dir/dirs-ext/test:
tests/test_dir/git:
3 001
3 002
+1
View File
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
+1
View File
@@ -1,3 +1,4 @@
0755 drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
0755 drwxr-xr-x - nixbld 1 Jan 1970 git
0755 drwxr-xr-x - nixbld 1 Jan 1970 grid
0755 drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 56 years dirs-ext
drwxr-xr-x - nixbld 56 years git
drwxr-xr-x - nixbld 56 years grid
drwxr-xr-x - nixbld 56 years group
+1
View File
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -8,6 +9,20 @@ specials
symlinks
time
tests/test_dir/dirs-ext:
01.city
02.apple
abc
test
tests/test_dir/dirs-ext/01.city:
tests/test_dir/dirs-ext/02.apple:
tests/test_dir/dirs-ext/abc:
tests/test_dir/dirs-ext/test:
tests/test_dir/git:
001
002
+15
View File
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -8,6 +9,20 @@ specials
symlinks
time
tests/test_dir/dirs-ext:
01.city
02.apple
abc
test
tests/test_dir/dirs-ext/01.city:
tests/test_dir/dirs-ext/02.apple:
tests/test_dir/dirs-ext/abc:
tests/test_dir/dirs-ext/test:
tests/test_dir/git:
001
002
+1
View File
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
+18
View File
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -8,6 +9,23 @@ specials
symlinks
time
tests/test_dir/dirs-ext:
01.city
02.apple
a.txt
ab
abc
abc.mp3
test
tests/test_dir/dirs-ext/01.city:
tests/test_dir/dirs-ext/02.apple:
tests/test_dir/dirs-ext/abc:
tests/test_dir/dirs-ext/test:
tests/test_dir/git:
001
002
+18
View File
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -8,6 +9,23 @@ specials
symlinks
time
tests/test_dir/dirs-ext:
01.city
02.apple
a.txt
ab
abc
abc.mp3
test
tests/test_dir/dirs-ext/01.city:
tests/test_dir/dirs-ext/02.apple:
tests/test_dir/dirs-ext/abc:
tests/test_dir/dirs-ext/test:
tests/test_dir/git:
001
002
+8
View File
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
+8
View File
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ ├── 002
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
+1 -1
View File
@@ -1 +1 @@
git grid group icons perms size specials symlinks time
dirs-ext git grid group icons perms size specials symlinks time
@@ -1,3 +1,4 @@
dirs-ext/
git/
grid/
group/
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -0,0 +1,10 @@
dirs-ext
git
grid
group
icons
perms
size
specials
symlinks
time
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
+4 -3
View File
@@ -1,3 +1,4 @@
git icons specials
grid perms symlinks
group size time
dirs-ext icons symlinks
git perms time
grid size
group specials
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,4 +1,5 @@
tests/test_dir
├── dirs-ext
├── git
├── grid
├── group
+9 -4
View File
@@ -1,5 +1,10 @@
git size
grid specials
group symlinks
icons time
dirs-ext
git
grid
group
icons
perms
size
specials
symlinks
time
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
+2 -2
View File
@@ -1,2 +1,2 @@
git group perms specials time
grid icons size symlinks
dirs-ext grid icons size symlinks
git group perms specials time
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
+1
View File
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,3 +1,4 @@
[CWD]/tests/test_dir/dirs-ext
[CWD]/tests/test_dir/git
[CWD]/tests/test_dir/grid
[CWD]/tests/test_dir/group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -8,6 +9,23 @@ specials
symlinks
time
tests/test_dir/dirs-ext:
01.city
02.apple
a.txt
ab
abc
abc.mp3
test
tests/test_dir/dirs-ext/01.city:
tests/test_dir/dirs-ext/02.apple:
tests/test_dir/dirs-ext/abc:
tests/test_dir/dirs-ext/test:
tests/test_dir/git:
001
002
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,4 +1,12 @@
tests/test_dir
├── dirs-ext
│ ├── 01.city
│ ├── 02.apple
│ ├── a.txt
│ ├── ab
│ ├── abc
│ ├── abc.mp3
│ └── test
├── git
│ ├── 001
│ │ ├── file_000
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group
@@ -1,3 +1,4 @@
 dirs-ext
 git
 grid
 group
@@ -7,3 +7,4 @@ icons
group
grid
git
dirs-ext
@@ -1,3 +1,4 @@
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
drwxr-xr-x - nixbld 1 Jan 1970 git
drwxr-xr-x - nixbld 1 Jan 1970 grid
drwxr-xr-x - nixbld 1 Jan 1970 group
@@ -1,3 +1,4 @@
dirs-ext
git
grid
group

Some files were not shown because too many files have changed in this diff Show More