details-view-dates.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. # alternate date formats
  32. [[cmd]]
  33. name = "‘exa -l --time-style=long-iso’ produces a table using the long-iso date format"
  34. shell = "exa -l --time-style=long-iso /testcases/dates"
  35. stdout = { file = "outputs/dates_long_timestyle_longiso.ansitxt" }
  36. stderr = { empty = true }
  37. status = 0
  38. tags = [ 'long', 'time-style' ]
  39. [[cmd]]
  40. name = "‘exa -l --time-style=relative’ produces a table using the relative date format"
  41. shell = "exa -l --time-style=relative /testcases/dates"
  42. stdout = { file = "outputs/dates_long_timestyle_relative.ansitxt" }
  43. stderr = { empty = true }
  44. status = 0
  45. tags = [ 'long', 'time-style' ]
  46. [[cmd]]
  47. name = "‘exa -l --time-style=full-iso’ produces a table using the full-iso date format"
  48. shell = "exa -l --time-style=full-iso /testcases/dates"
  49. stdout = { file = "outputs/dates_long_timestyle_fulliso.ansitxt" }
  50. stderr = { empty = true }
  51. status = 0
  52. tags = [ 'long', 'time-style' ]
  53. [[cmd]]
  54. name = "‘exa -l --time-style=iso’ produces a table using the iso date format"
  55. shell = "exa -l --time-style=iso /testcases/dates"
  56. stdout = { file = "outputs/dates_long_timestyle_iso.ansitxt" }
  57. stderr = { empty = true }
  58. status = 0
  59. tags = [ 'long', 'time-style' ]
  60. # locales
  61. [[cmd]]
  62. name = "‘exa -l’ using a locale with 4-character-long month abbreviations (‘ja_JP’) sizes the date column correctly"
  63. shell = "exa -l /testcases/dates"
  64. environment = { LC_TIME = "ja_JP.UTF-8", LANG = "ja_JP.UTF-8" }
  65. stdout = { file = "outputs/dates_long_localejp.ansitxt" }
  66. stderr = { empty = true }
  67. status = 0
  68. tags = [ 'long', 'locales' ]
  69. [[cmd]]
  70. name = "‘exa -l’ using a locale with 5-character-long month abbreviations (‘fr_FR’) sizes the date column correctly"
  71. shell = "exa -l /testcases/dates"
  72. environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
  73. stdout = { file = "outputs/dates_long_localefr.ansitxt" }
  74. stderr = { empty = true }
  75. status = 0
  76. tags = [ 'long', 'locales' ]
  77. [[cmd]]
  78. name = "‘exa -l’ using a locale (‘fr_FR’) display dates of the current year with localized month name"
  79. shell = "exa -l /testcases/files"
  80. environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
  81. stdout = { file = "outputs/dates_long_currentyear_localefr.ansitxt" }
  82. stderr = { empty = true }
  83. status = 0
  84. tags = [ 'long', 'locales' ]