details-view-dates.toml 3.0 KB

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