1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
# sorting by name
[[cmd]]
name = "‘exa -1 --sort=name’ sorts by file name"
shell = "exa -1 --sort=name /testcases/file-names-exts"
stdout = { file = "outputs/exts_oneline_sort_name.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort' ]
[[cmd]]
name = "‘exa -1 --sort=Name’ sorts by file name (case-sensitively)"
shell = "exa -1 --sort=Name /testcases/file-names-exts"
stdout = { file = "outputs/exts_oneline_sort_namecase.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort' ]
# sorting by file extension
[[cmd]]
name = "‘exa -1 --sort=ext’ sorts by file extension"
shell = "exa -1 --sort=ext /testcases/file-names-exts"
stdout = { file = "outputs/exts_oneline_sort_ext.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort' ]
[[cmd]]
name = "‘exa -1 --sort=Ext’ sorts by file extension (case-sensitively)"
shell = "exa -1 --sort=Ext /testcases/file-names-exts"
stdout = { file = "outputs/exts_oneline_sort_extcase.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort' ]
# sorting by kind
[[cmd]]
name = "‘exa -1 --sort=type’ sorts by file kind (files and symlinks)"
shell = "exa -1 --sort=type /testcases/links"
stdout = { file = "outputs/links_oneline_sort_type.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort' ]
[[cmd]]
name = "‘exa -1 --sort=type’ sorts by file kind (special files)"
shell = "exa -1 --sort=type /testcases/specials"
stdout = { file = "outputs/specials_oneline_sort_type.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort' ]
# sorting by inode
# We can’t guarantee inode numbers, but we can at least check that they’re in
# order. The inode column is the leftmost one, so sort works for this.
[[cmd]]
name = "‘exa -l --inode --sort=inode’ sorts by file inode"
shell = "exa -l --inode --sort=inode /testcases/file-names-exts | sort --check"
stdout = { empty = true }
stderr = { empty = true }
status = 0
tags = [ 'long', 'inode', 'sort' ]
# sorting by modified date
[[cmd]]
name = "‘exa -1 --sort=modified’ sorts most recently modified at the bottom"
shell = "exa -1 --sort=modified /testcases/dates"
stdout = { string = "pear\npeach\nplum" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates' ]
[[cmd]]
name = "‘exa -1 --sort=modified -r’ sorts most recently modified at the top"
shell = "exa -1 --sort=modified -r /testcases/dates"
stdout = { string = "plum\npeach\npear" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates', 'reverse' ]
[[cmd]]
name = "‘exa -1 --sort=newest’ sorts most recently modified at the bottom"
shell = "exa -1 --sort=newest /testcases/dates"
stdout = { string = "pear\npeach\nplum" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates' ]
[[cmd]]
name = "‘exa -1 --sort=newest -r’ sorts most recently modified at the top"
shell = "exa -1 --sort=newest -r /testcases/dates"
stdout = { string = "plum\npeach\npear" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates', 'reverse' ]
[[cmd]]
name = "‘exa -1 --sort=oldest’ sorts most recently modified at the top"
shell = "exa -1 --sort=oldest /testcases/dates"
stdout = { string = "plum\npeach\npear" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates' ]
[[cmd]]
name = "‘exa -1 --sort=oldest -r’ sorts most recently modified at the bottom"
shell = "exa -1 --sort=oldest -r /testcases/dates"
stdout = { string = "pear\npeach\nplum" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates', 'reverse' ]
# sorting by other date fields
[[cmd]]
name = "‘exa -1 --sort=created’ sorts by created date"
shell = "exa -1 --sort=created /testcases/dates"
stdout = { string = "peach\nplum\npear" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates' ]
[[cmd]]
name = "‘exa -1 --sort=accessed’ sorts by accessed date"
shell = "exa -1 --sort=accessed /testcases/dates"
stdout = { string = "plum\npear\npeach" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'dates' ]
# sorting with arguments specified
[[cmd]]
name = "‘exa -G --sort=name -r’ with file arguments sorts by file name in reverse order"
shell = "cd /testcases/file-names-exts; exa -G --sort=name -r *"
environment = { COLUMNS = "80" }
stdout = { file = "outputs/exts_grid_sort_name_reverse.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'grid', 'sort', 'reverse' ]
[[cmd]]
name = "‘exa -1 --sort=name -r’ with file arguments sorts by file name in reverse order"
shell = "cd /testcases/file-names-exts; exa -1 --sort=name -r *"
stdout = { file = "outputs/exts_oneline_sort_name_reverse.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'reverse' ]
|