diff options
-rwxr-xr-x | tests.sh | 10 | ||||
-rw-r--r-- | tests/test_color_ext_override.out | 17 | ||||
-rw-r--r-- | tests/test_color_ext_underride.out | 17 |
3 files changed, 44 insertions, 0 deletions
@@ -631,6 +631,8 @@ bfs_tests=( test_color_or_mi0 test_color_ext test_color_ext0 + test_color_ext_override + test_color_ext_underride test_color_missing_colon test_execdir_plus @@ -1866,6 +1868,14 @@ function test_color_ext0() { LS_COLORS="*.txt=00:" bfs_diff rainbow -color } +function test_color_ext_override() { + LS_COLORS="*.txt=01;31:*t=01;33:" bfs_diff rainbow -color +} + +function test_color_ext_underride() { + LS_COLORS="*t=01;33:*.txt=01;31:" bfs_diff rainbow -color +} + function test_color_missing_colon() { LS_COLORS="*.txt=01" bfs_diff rainbow -color } diff --git a/tests/test_color_ext_override.out b/tests/test_color_ext_override.out new file mode 100644 index 0000000..ba895ec --- /dev/null +++ b/tests/test_color_ext_override.out @@ -0,0 +1,17 @@ +[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;35msocket[0m +[01;34mrainbow/[0m[01;36mchardev_link[0m +[01;34mrainbow/[0m[01;36mlink.txt[0m +[01;34mrainbow/[0m[30;42msticky_ow[0m +[01;34mrainbow/[0m[30;43msgid[0m +[01;34mrainbow/[0m[34;42mow[0m +[01;34mrainbow/[0m[37;41msugid[0m +[01;34mrainbow/[0m[37;41msuid[0m +[01;34mrainbow/[0m[37;44msticky[0m +[01;34mrainbow/[0m[40;31;01mbroken[0m +[01;34mrainbow/[0m[40;33mpipe[0m +[01;34mrainbow/[0mmh1 +[01;34mrainbow/[0mmh2 diff --git a/tests/test_color_ext_underride.out b/tests/test_color_ext_underride.out new file mode 100644 index 0000000..c9e21f2 --- /dev/null +++ b/tests/test_color_ext_underride.out @@ -0,0 +1,17 @@ +[01;34mrainbow[0m +[01;34mrainbow/[0m[01;31mfile.txt[0m +[01;34mrainbow/[0m[01;32mexec.sh[0m +[01;34mrainbow/[0m[01;33mfile.dat[0m +[01;34mrainbow/[0m[01;35msocket[0m +[01;34mrainbow/[0m[01;36mchardev_link[0m +[01;34mrainbow/[0m[01;36mlink.txt[0m +[01;34mrainbow/[0m[30;42msticky_ow[0m +[01;34mrainbow/[0m[30;43msgid[0m +[01;34mrainbow/[0m[34;42mow[0m +[01;34mrainbow/[0m[37;41msugid[0m +[01;34mrainbow/[0m[37;41msuid[0m +[01;34mrainbow/[0m[37;44msticky[0m +[01;34mrainbow/[0m[40;31;01mbroken[0m +[01;34mrainbow/[0m[40;33mpipe[0m +[01;34mrainbow/[0mmh1 +[01;34mrainbow/[0mmh2 |