From 1609a505e6a6ee2730c8ad15d145335f81204bb1 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 17 Mar 2019 15:09:41 -0600 Subject: tests: Use archive extensions for color tests --- tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 05a3457..3576f7a 100755 --- a/tests.sh +++ b/tests.sh @@ -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() { -- cgit v1.2.3