summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-03-11 11:18:05 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-03-11 11:18:05 -0500
commitd03c58ef1cc8aa932b4f652dea14f762716bc02a (patch)
tree241e6c8065a6b4ee002e9920db7015b57e0eb1aa /tests.sh
parent56561ac76421f0898eebc76b3d0722e95014433c (diff)
downloadbfs-d03c58ef1cc8aa932b4f652dea14f762716bc02a.tar.xz
Implement -printf %Ak, %Ck, and %Tk
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index f991823..46fcc52 100755
--- a/tests.sh
+++ b/tests.sh
@@ -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'