diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-17 15:09:41 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-17 15:09:41 -0600 |
commit | 1609a505e6a6ee2730c8ad15d145335f81204bb1 (patch) | |
tree | b6db7bdd5138a4944c575ef7a84080efe0e0bf53 /tests.sh | |
parent | 8ee6de6dd8376a3c087e94fe32d1b6e97a44a862 (diff) | |
download | bfs-1609a505e6a6ee2730c8ad15d145335f81204bb1.tar.xz |
tests: Use archive extensions for color tests
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -180,6 +180,7 @@ make_deep "$TMP/deep" function make_rainbow() { touchp "$1/file.txt" touchp "$1/file.dat" + touchp "$1/star".{gz,tar,tar.gz} ln -s file.txt "$1/link.txt" touchp "$1/mh1" ln "$1/mh1" "$1/mh2" @@ -1924,11 +1925,11 @@ function test_color_ext0() { } function test_color_ext_override() { - LS_COLORS="*.txt=01;31:*t=01;33:" bfs_diff rainbow -color + LS_COLORS="*.tar.gz=01;31:*.tar=01;32:*.gz=01;33:" bfs_diff rainbow -color } function test_color_ext_underride() { - LS_COLORS="*t=01;33:*.txt=01;31:" bfs_diff rainbow -color + LS_COLORS="*.gz=01;33:*.tar=01;32:*.tar.gz=01;31:" bfs_diff rainbow -color } function test_color_missing_colon() { |