summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-07 22:13:26 -0800
committerTavian Barnes <tavianator@tavianator.com>2019-03-07 22:13:26 -0800
commit9c76c4faa6474122d7d2e7dffdcacc1d84a4dbd8 (patch)
treed4057492c2ad97aff245688955e35d2aa640753a /tests.sh
parentaafdd8eead6b5856b9adecdbcec86acc194b8af0 (diff)
downloadbfs-9c76c4faa6474122d7d2e7dffdcacc1d84a4dbd8.tar.xz
tests: Add a test for extension overrides
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh10
1 files changed, 10 insertions, 0 deletions
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
}