From 09119a3e8fa5f206eb4254144a1c8e77bc6e587e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 4 May 2019 11:51:56 -0400 Subject: bftw: Add a caching stat() API to struct BFTW --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests.sh') 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 } -- cgit v1.2.3