diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-05-04 11:51:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-05-04 11:55:07 -0400 |
commit | 09119a3e8fa5f206eb4254144a1c8e77bc6e587e (patch) | |
tree | 924146ec43e912f2271ab90a470cd09492919db7 /tests.sh | |
parent | d8e10d648b12b8595e9f177ec8f1a71d24aecea5 (diff) | |
download | bfs-09119a3e8fa5f206eb4254144a1c8e77bc6e587e.tar.xz |
bftw: Add a caching stat() API to struct BFTW
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 } |