diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-03-11 11:18:05 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-03-11 11:18:05 -0500 |
commit | d03c58ef1cc8aa932b4f652dea14f762716bc02a (patch) | |
tree | 241e6c8065a6b4ee002e9920db7015b57e0eb1aa /tests.sh | |
parent | 56561ac76421f0898eebc76b3d0722e95014433c (diff) | |
download | bfs-d03c58ef1cc8aa932b4f652dea14f762716bc02a.tar.xz |
Implement -printf %Ak, %Ck, and %Tk
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -283,9 +283,10 @@ gnu_tests=( test_printf_flags test_printf_types test_printf_escapes + test_printf_times + test_printf_leak test_quit_after_print test_quit_before_print - test_printf_leak test_not test_and test_or @@ -974,6 +975,10 @@ function test_printf_escapes() { bfs_diff basic -maxdepth 0 -printf '\18\118\1118\11118\n\cfoo' } +function test_printf_times() { + TZ=UTC bfs_diff times -type f -printf '%p | %a %AY-%Am-%Ad %AH:%AI:%AS %T@ | %t %TY-%Tm-%Td %TH:%TI:%TS %T@\n' +} + function test_printf_leak() { # Memory leak regression test bfs_diff basic -maxdepth 0 -printf '%p' |