From 9c76c4faa6474122d7d2e7dffdcacc1d84a4dbd8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 7 Mar 2019 22:13:26 -0800 Subject: tests: Add a test for extension overrides --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index f7aaa8c..61e1273 100755 --- a/tests.sh +++ b/tests.sh @@ -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 } -- cgit v1.2.3