diff options
26 files changed, 82 insertions, 6 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() { diff --git a/tests/test_color.out b/tests/test_color.out index 98d459f..77fc8a8 100644 --- a/tests/test_color.out +++ b/tests/test_color.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_L.out b/tests/test_color_L.out index b93716f..b60dd4a 100644 --- a/tests/test_color_L.out +++ b/tests/test_color_L.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mlink.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_ext.out b/tests/test_color_ext.out index fff32ef..cf26e73 100644 --- a/tests/test_color_ext.out +++ b/tests/test_color_ext.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.dat [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_ext0.out b/tests/test_color_ext0.out index c9bc052..e764a6b 100644 --- a/tests/test_color_ext0.out +++ b/tests/test_color_ext0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.dat [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_ext_override.out b/tests/test_color_ext_override.out index cd3231d..1377b65 100644 --- a/tests/test_color_ext_override.out +++ b/tests/test_color_ext_override.out @@ -1,7 +1,8 @@ [01;34mrainbow[0m [01;34mrainbow/[0m[01;32mexec.sh[0m -[01;34mrainbow/[0m[01;33mfile.dat[0m -[01;34mrainbow/[0m[01;33mfile.txt[0m +[01;34mrainbow/[0m[01;32mstar.tar[0m +[01;34mrainbow/[0m[01;33mstar.gz[0m +[01;34mrainbow/[0m[01;33mstar.tar.gz[0m [01;34mrainbow/[0m[01;35msocket[0m [01;34mrainbow/[0m[01;36mbroken[0m [01;34mrainbow/[0m[01;36mchardev_link[0m @@ -13,5 +14,7 @@ [01;34mrainbow/[0m[37;41msugid[0m [01;34mrainbow/[0m[37;41msuid[0m [01;34mrainbow/[0m[37;44msticky[0m +[01;34mrainbow/[0mfile.dat +[01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 diff --git a/tests/test_color_ext_underride.out b/tests/test_color_ext_underride.out index 127cc66..787248a 100644 --- a/tests/test_color_ext_underride.out +++ b/tests/test_color_ext_underride.out @@ -1,7 +1,8 @@ [01;34mrainbow[0m -[01;34mrainbow/[0m[01;31mfile.txt[0m +[01;34mrainbow/[0m[01;31mstar.tar.gz[0m [01;34mrainbow/[0m[01;32mexec.sh[0m -[01;34mrainbow/[0m[01;33mfile.dat[0m +[01;34mrainbow/[0m[01;32mstar.tar[0m +[01;34mrainbow/[0m[01;33mstar.gz[0m [01;34mrainbow/[0m[01;35msocket[0m [01;34mrainbow/[0m[01;36mbroken[0m [01;34mrainbow/[0m[01;36mchardev_link[0m @@ -13,5 +14,7 @@ [01;34mrainbow/[0m[37;41msugid[0m [01;34mrainbow/[0m[37;41msuid[0m [01;34mrainbow/[0m[37;44msticky[0m +[01;34mrainbow/[0mfile.dat +[01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 diff --git a/tests/test_color_mh.out b/tests/test_color_mh.out index 4651cf1..757a6a1 100644 --- a/tests/test_color_mh.out +++ b/tests/test_color_mh.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0m[37;44msticky[0m [01;34mrainbow/[0mfile.dat [01;34mrainbow/[0mfile.txt +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_mh0.out b/tests/test_color_mh0.out index 98d459f..77fc8a8 100644 --- a/tests/test_color_mh0.out +++ b/tests/test_color_mh0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_mi.out b/tests/test_color_mi.out index 98d459f..77fc8a8 100644 --- a/tests/test_color_mi.out +++ b/tests/test_color_mi.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_missing_colon.out b/tests/test_color_missing_colon.out index fff32ef..cf26e73 100644 --- a/tests/test_color_missing_colon.out +++ b/tests/test_color_missing_colon.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.dat [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_or.out b/tests/test_color_or.out index 4668cc0..9e1fe5c 100644 --- a/tests/test_color_or.out +++ b/tests/test_color_or.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_or0_mi.out b/tests/test_color_or0_mi.out index 98d459f..77fc8a8 100644 --- a/tests/test_color_or0_mi.out +++ b/tests/test_color_or0_mi.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_or0_mi0.out b/tests/test_color_or0_mi0.out index 98d459f..77fc8a8 100644 --- a/tests/test_color_or0_mi0.out +++ b/tests/test_color_or0_mi0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_or_mi.out b/tests/test_color_or_mi.out index 8bf605e..5667f56 100644 --- a/tests/test_color_or_mi.out +++ b/tests/test_color_or_mi.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_or_mi0.out b/tests/test_color_or_mi0.out index 8bf605e..5667f56 100644 --- a/tests/test_color_or_mi0.out +++ b/tests/test_color_or_mi0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st0_tw0_ow.out b/tests/test_color_st0_tw0_ow.out index 51ca9d2..9a47ef2 100644 --- a/tests/test_color_st0_tw0_ow.out +++ b/tests/test_color_st0_tw0_ow.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st0_tw0_ow0.out b/tests/test_color_st0_tw0_ow0.out index e86ae35..2b86fe4 100644 --- a/tests/test_color_st0_tw0_ow0.out +++ b/tests/test_color_st0_tw0_ow0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st0_tw_ow.out b/tests/test_color_st0_tw_ow.out index efb7b39..42549a1 100644 --- a/tests/test_color_st0_tw_ow.out +++ b/tests/test_color_st0_tw_ow.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st0_tw_ow0.out b/tests/test_color_st0_tw_ow0.out index 16c6f53..535b8ae 100644 --- a/tests/test_color_st0_tw_ow0.out +++ b/tests/test_color_st0_tw_ow0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st_tw0_ow.out b/tests/test_color_st_tw0_ow.out index 6c2346c..c9a86f4 100644 --- a/tests/test_color_st_tw0_ow.out +++ b/tests/test_color_st_tw0_ow.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st_tw0_ow0.out b/tests/test_color_st_tw0_ow0.out index 242622d..2d94f3a 100644 --- a/tests/test_color_st_tw0_ow0.out +++ b/tests/test_color_st_tw0_ow0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_st_tw_ow0.out b/tests/test_color_st_tw_ow0.out index c3b5af1..317ef90 100644 --- a/tests/test_color_st_tw_ow0.out +++ b/tests/test_color_st_tw_ow0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz diff --git a/tests/test_color_su0_sg.out b/tests/test_color_su0_sg.out index 510c431..8b8c8b8 100644 --- a/tests/test_color_su0_sg.out +++ b/tests/test_color_su0_sg.out @@ -14,4 +14,7 @@ [01;34mrainbow/[0mfile.txt [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz [01;34mrainbow/[0msuid diff --git a/tests/test_color_su0_sg0.out b/tests/test_color_su0_sg0.out index d018c2a..0cd5f9a 100644 --- a/tests/test_color_su0_sg0.out +++ b/tests/test_color_su0_sg0.out @@ -13,5 +13,8 @@ [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 [01;34mrainbow/[0msgid +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz [01;34mrainbow/[0msugid [01;34mrainbow/[0msuid diff --git a/tests/test_color_su_sg0.out b/tests/test_color_su_sg0.out index dffb3c5..a9e8c5d 100644 --- a/tests/test_color_su_sg0.out +++ b/tests/test_color_su_sg0.out @@ -15,3 +15,6 @@ [01;34mrainbow/[0mmh1 [01;34mrainbow/[0mmh2 [01;34mrainbow/[0msgid +[01;34mrainbow/[0mstar.gz +[01;34mrainbow/[0mstar.tar +[01;34mrainbow/[0mstar.tar.gz |