test: add tests for non-recent/recent custom time style

This commit is contained in:
SPQV MF 2023-11-16 00:53:08 +08:00 committed by Christina Sørensen
parent baca71751a
commit 131ad8afc1
18 changed files with 63 additions and 9 deletions

View file

@ -0,0 +1,2 @@
NON_RECENT 13_month
RECENT now

View file

@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+NON_RECENT\n RECENT'"

View file

@ -0,0 +1,2 @@
[..]Custom timestamp format is empty, please supply a chrono format string after the plus sign.[..]
...

View file

@ -0,0 +1,3 @@
bin.name = "eza"
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+\n'"
status.code = 101

View file

@ -0,0 +1,2 @@
[..]Custom timestamp format is empty, please supply a chrono format string after the plus sign.[..]
...

View file

@ -0,0 +1,3 @@
bin.name = "eza"
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+'"
status.code = 101

View file

@ -0,0 +1,2 @@
NON_RECENT 13_month
NON_RECENT now

View file

@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+NON_RECENT'"

View file

@ -0,0 +1,2 @@
[..]Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.[..]
...

View file

@ -0,0 +1,3 @@
bin.name = "eza"
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+NON_RECENT\n\n'"
status.code = 101