summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-05-04 11:51:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-05-04 11:55:07 -0400
commit09119a3e8fa5f206eb4254144a1c8e77bc6e587e (patch)
tree924146ec43e912f2271ab90a470cd09492919db7 /tests.sh
parentd8e10d648b12b8595e9f177ec8f1a71d24aecea5 (diff)
downloadbfs-09119a3e8fa5f206eb4254144a1c8e77bc6e587e.tar.xz
bftw: Add a caching stat() API to struct BFTW
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 d47d573..8716639 100755
--- a/tests.sh
+++ b/tests.sh
@@ -504,6 +504,7 @@ gnu_tests=(
test_print_error
test_printf
+ test_printf_empty
test_printf_slash
test_printf_slashes
test_printf_trailing_slash
@@ -585,6 +586,7 @@ bfs_tests=(
test_color_escapes
test_color_nul
test_color_ln_target
+ test_color_L_ln_target
test_color_mh
test_color_mh0
test_color_or
@@ -1777,6 +1779,10 @@ function test_printf() {
bfs_diff basic -printf '%%p(%p) %%d(%d) %%f(%f) %%h(%h) %%H(%H) %%P(%P) %%m(%m) %%M(%M) %%y(%y)\n'
}
+function test_printf_empty() {
+ bfs_diff basic -printf ''
+}
+
function test_printf_slash() {
bfs_diff / -maxdepth 0 -printf '(%h)/(%f)\n'
}
@@ -1954,6 +1960,10 @@ function test_color_ln_target() {
LS_COLORS="ln=target:or=01;31:mi=01;33:" bfs_diff rainbow -color
}
+function test_color_L_ln_target() {
+ LS_COLORS="ln=target:or=01;31:mi=01;33:" bfs_diff -L rainbow -color
+}
+
function test_color_mh() {
LS_COLORS="mh=01:" bfs_diff rainbow -color
}