# 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' ] [[cmd]] name = "‘exa -l --time-style=relative’ handles dates far past and future dates" shell = "exa -l --time-style=relative /testcases/far-dates" stdout = { file = "outputs/far_dates_relative.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=relative’ produces a table using the relative date format" shell = "exa -l --time-style=relative /testcases/dates" stdout = { file = "outputs/dates_long_timestyle_relative.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_TIME = "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_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" } stdout = { file = "outputs/dates_long_localefr.ansitxt" } stderr = { empty = true } status = 0 tags = [ 'long', 'locales' ] [[cmd]] name = "‘exa -l’ using a locale (‘fr_FR’) display dates of the current year with localized month name" shell = "exa -l /testcases/files" environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" } stdout = { file = "outputs/dates_long_currentyear_localefr.ansitxt" } stderr = { empty = true } status = 0 tags = [ 'long', 'locales' ]