diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-07 22:13:26 -0800 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-07 22:13:26 -0800 |
commit | 9c76c4faa6474122d7d2e7dffdcacc1d84a4dbd8 (patch) | |
tree | d4057492c2ad97aff245688955e35d2aa640753a /tests.sh | |
parent | aafdd8eead6b5856b9adecdbcec86acc194b8af0 (diff) | |
download | bfs-9c76c4faa6474122d7d2e7dffdcacc1d84a4dbd8.tar.xz |
tests: Add a test for extension overrides
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 10 |
1 files changed, 10 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 } |