exa/xtests/details-view-dates.toml
Benjamin Sago d8b21a33b5 More date-related xtests
• Displaying accessed and modified dates
• Displaying dates in the distant past and far future (#557)
2020-10-17 21:26:24 +01:00

85 lines
2.6 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# various date fields
[[cmd]]
name = "exa -lh produces a table using the modified time field"
shell = "exa -lh /testcases/dates"
stdout = { file = "outputs/dates_long_time_modified.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'header', 'time' ]
[[cmd]]
name = "exa -lh --time=modified produces a table using the modified time field"
shell = "exa -lh --time=modified /testcases/dates"
stdout = { file = "outputs/dates_long_time_modified.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'header', 'time' ]
[[cmd]]
name = "exa -lh --time=accessed produces a table using the accessed time field"
shell = "exa -lh --time=accessed /testcases/dates"
stdout = { file = "outputs/dates_long_time_accessed.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'header', 'time' ]
# distant past and far future dates
[[cmd]]
name = "exa -l handles dates far past and future dates"
shell = "exa -l /testcases/far-dates"
stdout = { file = "outputs/far_dates_long.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'time' ]
# alternate date formats
[[cmd]]
name = "exa -l --time-style=long-iso produces a table using the long-iso date format"
shell = "exa -l --time-style=long-iso /testcases/dates"
stdout = { file = "outputs/dates_long_timestyle_longiso.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'time-style' ]
[[cmd]]
name = "exa -l --time-style=full-iso produces a table using the full-iso date format"
shell = "exa -l --time-style=full-iso /testcases/dates"
stdout = { file = "outputs/dates_long_timestyle_fulliso.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'time-style' ]
[[cmd]]
name = "exa -l --time-style=iso produces a table using the iso date format"
shell = "exa -l --time-style=iso /testcases/dates"
stdout = { file = "outputs/dates_long_timestyle_iso.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'time-style' ]
# locales
[[cmd]]
name = "exa -l using a locale with 4-character-long month abbreviations (ja_JP) sizes the date column correctly"
shell = "exa -l /testcases/dates"
environment = { LC_ALL = "ja_JP.UTF-8", LANG = "ja_JP.UTF-8" }
stdout = { file = "outputs/dates_long_localejp.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'locales' ]
[[cmd]]
name = "exa -l using a locale with 5-character-long month abbreviations (fr_FR) sizes the date column correctly"
shell = "exa -l /testcases/dates"
environment = { LC_ALL = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
stdout = { file = "outputs/dates_long_localefr.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'locales' ]