summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-05-05 23:16:01 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-05-05 23:16:01 -0400
commita3c1c3ed54d9d595feb1df38e775af3d6ff9facd (patch)
tree4d7347b1cc073be521cb8f0d6e5b36ab5e091021 /tests.sh
parentdf7d960b0d7e1f9bd8aa58654760e41b6282f78a (diff)
downloadbfs-a3c1c3ed54d9d595feb1df38e775af3d6ff9facd.tar.xz
color: Don't stat() if we don't need to
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 8716639..b9d0a89 100755
--- a/tests.sh
+++ b/tests.sh
@@ -610,6 +610,8 @@ bfs_tests=(
test_color_ext_override
test_color_ext_underride
test_color_missing_colon
+ test_color_no_stat
+ test_color_L_no_stat
test_execdir_plus
@@ -2056,6 +2058,14 @@ function test_color_missing_colon() {
LS_COLORS="*.txt=01" bfs_diff rainbow -color
}
+function test_color_no_stat() {
+ LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff rainbow -color
+}
+
+function test_color_L_no_stat() {
+ LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff -L rainbow -color
+}
+
function test_deep() {
closefrom 4