exa/xtests
Benjamin Sago bfb8a5a573 Extract trait above file name colours
This commit meddles about with both the Colours and the FileExtensions.

Even though all the renderable fields were turned into traits, the FileName struct kept on accessing fields directly on the Colours value instead of calling methods on it. It also did the usual amount of colour misappropriation (such as ‘punctuation’ instead of specifying ‘normal_arrow’)

In preparation for when custom file colours are configurable (any day now), the colourise-file-by-kind functionality (links, sockets, or directories) was separated from the colourise-file-by-name functionality (images, videos, archives). The FileStyle struct already allowed for both to be separate; it was only changed so that a type other than FileExtensions could be used instead, as long as it implements the FileColours trait. (I feel like I should re-visit the naming of all these at some point in the future)

The decision to separate the two means that FileExtensions is the one assigning the colours, rather than going through the fields on a Colours value, which have all been removed. This is why a bunch of arbitrary Styles now exist in filetype.rs.

Because the decision on which colourise-file-by-name code to use (currently just the standard extensions, or nothing if we aren’t colourising) is now determined by the Colours type (instead of being derived), it’s possible to get it wrong. And wrong it was! There was a bug where file names were colourised even though the rest of the --long output wasn’t, and this wasn’t caught by the xtests. It is now.
2017-08-26 20:43:47 +01:00
..
attributes Fix tree permissions bug 2017-07-04 17:48:30 +01:00
attributes_dir Allow xattrs to be shown in --tree without --long 2017-08-06 12:02:17 +01:00
attributes_files Allow xattrs to be shown in --tree without --long 2017-08-06 12:02:17 +01:00
dates_accessed Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
dates_fr Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
dates_full_iso Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
dates_iso Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
dates_jp Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
dates_long_iso Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
dates_modified Test the locale month name width stuff 2017-08-06 22:25:00 +01:00
debug Test for debug mode 2017-08-19 13:57:56 +01:00
dir_paths Tests for the directory path fix 2017-04-29 10:56:17 +01:00
dirs Further tests for printing out directory names 2017-04-29 11:52:44 +01:00
empty Only engage the view when there are files to show 2016-10-29 19:07:43 +01:00
error_duplicate Fix an error being displayed weirdly 2017-08-19 22:17:53 +01:00
error_long Add actual error messages for the error messages 2017-08-10 23:34:39 +01:00
error_overvalued Add actual error messages for the error messages 2017-08-10 23:34:39 +01:00
error_short Add actual error messages for the error messages 2017-08-10 23:34:39 +01:00
error_twice Fix an error being displayed weirdly 2017-08-19 22:17:53 +01:00
error_useless Fix an error being displayed weirdly 2017-08-19 22:17:53 +01:00
error_value Add actual error messages for the error messages 2017-08-10 23:34:39 +01:00
file_names Test change emoji width 2017-05-17 23:12:27 +01:00
file_names_1 Also escape characters in links and headings 2017-05-01 21:54:53 +01:00
file_names_bw Extract trait above file name colours 2017-08-26 20:43:47 +01:00
file_names_R Test change emoji width 2017-05-17 23:12:27 +01:00
file_names_T Hide xattr errors unless --extended 2017-08-11 12:36:14 +01:00
file_names_T@ Hide xattr errors unless --extended 2017-08-11 12:36:14 +01:00
file_names_x Test change emoji width 2017-05-17 23:12:27 +01:00
file-names-exts Add extra types to compressed filetype filter. 2017-08-07 00:57:29 -04:00
file-names-exts-bw Extract trait above file name colours 2017-08-26 20:43:47 +01:00
file-names-exts-case Add extra types to compressed filetype filter. 2017-08-07 00:57:29 -04:00
file-names-exts-ext Add extra types to compressed filetype filter. 2017-08-07 00:57:29 -04:00
file-names-exts-ext-case Add extra types to compressed filetype filter. 2017-08-07 00:57:29 -04:00
files Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_40 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_80 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_120 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_160 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_200 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_l Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_l_binary Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_l_bw Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_l_bytes Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_l_scale Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lG_40 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lG_80 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lG_120 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lG_160 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lG_200 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lh Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lhb Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_lhb2 Default to sorting case-insensitively 2017-08-20 17:33:39 +01:00
files_star_100 Fix bug where paths took up twice as much space 2017-05-02 17:40:32 +01:00
files_star_150 Fix bug where paths took up twice as much space 2017-05-02 17:40:32 +01:00
files_star_200 Fix bug where paths took up twice as much space 2017-05-02 17:40:32 +01:00
files_star_lG_100 Fix bug where paths took up twice as much space 2017-05-02 17:40:32 +01:00
files_star_lG_150 Fix bug where paths took up twice as much space 2017-05-02 17:40:32 +01:00
files_star_lG_200 Fix bug where paths took up twice as much space 2017-05-02 17:40:32 +01:00
git_additions Add xtests for existing Git implementation 2017-05-17 20:35:05 +01:00
git_edits Add xtests for existing Git implementation 2017-05-17 20:35:05 +01:00
help Remove stray colon from help text 2017-08-12 11:39:12 +01:00
help_long Document --time-style, and completions 2017-07-06 00:52:27 +01:00
hiddens Override the names of . and .. 2017-06-28 18:41:31 +01:00
hiddens_a Override the names of . and .. 2017-06-28 18:41:31 +01:00
hiddens_aa Override the names of . and .. 2017-06-28 18:41:31 +01:00
hiddens_l Override the names of . and .. 2017-06-28 18:41:31 +01:00
hiddens_la Override the names of . and .. 2017-06-28 18:41:31 +01:00
hiddens_laa Override the names of . and .. 2017-06-28 18:41:31 +01:00
ignores_ogg Rename file-types tests to file-names-exts 2017-04-28 20:07:31 +01:00
links Give broken links a different style in grid view 2017-05-07 14:45:04 +01:00
links_1 Add tests for relative symlinks 2017-04-30 11:58:29 +01:00
links_1_files Re-prefix the paths found by following symlinks 2017-05-15 22:38:23 +01:00
links_T Hide xattr errors unless --extended 2017-08-11 12:36:14 +01:00
links_T@ Hide xattr errors unless --extended 2017-08-11 12:36:14 +01:00
passwd Protect xtests against different default users 2017-04-28 19:34:23 +01:00
permissions xtests for higher order bits 2017-05-30 15:32:11 +01:00
permissions_sudo xtests for higher order bits 2017-05-30 15:32:11 +01:00
proc_1_root Hide xattr errors unless --extended 2017-08-11 12:36:14 +01:00
proc_1_root_@ Hide xattr errors unless --extended 2017-08-11 12:36:14 +01:00
README.md Replace the testcases script with a Vagrant VM 2016-10-07 19:31:03 +01:00
run.sh Extract trait above file name colours 2017-08-26 20:43:47 +01:00
sort-by-type Add sorting by type 2017-06-29 14:52:02 +01:00
specials Display device IDs when listing devices 2017-05-19 09:20:47 +01:00
specials_F Display device IDs when listing devices 2017-05-19 09:20:47 +01:00
specials_sort Add sorting by type 2017-06-29 14:52:02 +01:00

Extra tests

These extra tests are intended to be run from a Vagrant VM that has already had its environment set up -- see the section in the README for more details.