details-view-dates.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # various date fields
  2. [[cmd]]
  3. name = "‘exa -lh’ produces a table using the modified time field"
  4. shell = "exa -lh /testcases/dates"
  5. stdout = { file = "outputs/dates_long_time_modified.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ 'long', 'header', 'time' ]
  9. [[cmd]]
  10. name = "‘exa -lh --time=modified’ produces a table using the modified time field"
  11. shell = "exa -lh --time=modified /testcases/dates"
  12. stdout = { file = "outputs/dates_long_time_modified.ansitxt" }
  13. stderr = { empty = true }
  14. status = 0
  15. tags = [ 'long', 'header', 'time' ]
  16. [[cmd]]
  17. name = "‘exa -lh --time=accessed’ produces a table using the accessed time field"
  18. shell = "exa -lh --time=accessed /testcases/dates"
  19. stdout = { file = "outputs/dates_long_time_accessed.ansitxt" }
  20. stderr = { empty = true }
  21. status = 0
  22. tags = [ 'long', 'header', 'time' ]
  23. # distant past and far future dates
  24. [[cmd]]
  25. name = "‘exa -l’ handles dates far past and future dates"
  26. shell = "exa -l /testcases/far-dates"
  27. stdout = { file = "outputs/far_dates_long.ansitxt" }
  28. stderr = { empty = true }
  29. status = 0
  30. tags = [ 'long', 'time' ]
  31. [[cmd]]
  32. name = "‘exa -l --time-style=relative’ handles dates far past and future dates"
  33. shell = "exa -l --time-style=relative /testcases/far-dates"
  34. stdout = { file = "outputs/far_dates_relative.ansitxt" }
  35. stderr = { empty = true }
  36. status = 0
  37. tags = [ 'long', 'time' ]
  38. # alternate date formats
  39. [[cmd]]
  40. name = "‘exa -l --time-style=long-iso’ produces a table using the long-iso date format"
  41. shell = "exa -l --time-style=long-iso /testcases/dates"
  42. stdout = { file = "outputs/dates_long_timestyle_longiso.ansitxt" }
  43. stderr = { empty = true }
  44. status = 0
  45. tags = [ 'long', 'time-style' ]
  46. [[cmd]]
  47. name = "‘exa -l --time-style=relative’ produces a table using the relative date format"
  48. shell = "exa -l --time-style=relative /testcases/dates"
  49. stdout = { file = "outputs/dates_long_timestyle_relative.ansitxt" }
  50. stderr = { empty = true }
  51. status = 0
  52. tags = [ 'long', 'time-style' ]
  53. [[cmd]]
  54. name = "‘exa -l --time-style=full-iso’ produces a table using the full-iso date format"
  55. shell = "exa -l --time-style=full-iso /testcases/dates"
  56. stdout = { file = "outputs/dates_long_timestyle_fulliso.ansitxt" }
  57. stderr = { empty = true }
  58. status = 0
  59. tags = [ 'long', 'time-style' ]
  60. [[cmd]]
  61. name = "‘exa -l --time-style=iso’ produces a table using the iso date format"
  62. shell = "exa -l --time-style=iso /testcases/dates"
  63. stdout = { file = "outputs/dates_long_timestyle_iso.ansitxt" }
  64. stderr = { empty = true }
  65. status = 0
  66. tags = [ 'long', 'time-style' ]
  67. # locales
  68. [[cmd]]
  69. name = "‘exa -l’ using a locale with 4-character-long month abbreviations (‘ja_JP’) sizes the date column correctly"
  70. shell = "exa -l /testcases/dates"
  71. environment = { LC_TIME = "ja_JP.UTF-8", LANG = "ja_JP.UTF-8" }
  72. stdout = { file = "outputs/dates_long_localejp.ansitxt" }
  73. stderr = { empty = true }
  74. status = 0
  75. tags = [ 'long', 'locales' ]
  76. [[cmd]]
  77. name = "‘exa -l’ using a locale with 5-character-long month abbreviations (‘fr_FR’) sizes the date column correctly"
  78. shell = "exa -l /testcases/dates"
  79. environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
  80. stdout = { file = "outputs/dates_long_localefr.ansitxt" }
  81. stderr = { empty = true }
  82. status = 0
  83. tags = [ 'long', 'locales' ]
  84. [[cmd]]
  85. name = "‘exa -l’ using a locale (‘fr_FR’) display dates of the current year with localized month name"
  86. shell = "exa -l /testcases/files"
  87. environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
  88. stdout = { file = "outputs/dates_long_currentyear_localefr.ansitxt" }
  89. stderr = { empty = true }
  90. status = 0
  91. tags = [ 'long', 'locales' ]