diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-07-23 15:19:17 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-07-23 15:22:02 -0400 |
commit | 972dcc2973b160cdaad2c4ce0df3616a9f234759 (patch) | |
tree | e33713ed22a3e37f0bd3fda2a4808dc152173674 /tests/common/mtime.sh | |
parent | 4649cf3132217fe9f975f7e16f47928e5d7680bf (diff) | |
download | bfs-972dcc2973b160cdaad2c4ce0df3616a9f234759.tar.xz |
tests: Make more tests POSIX-compliant
Diffstat (limited to 'tests/common/mtime.sh')
-rw-r--r-- | tests/common/mtime.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/common/mtime.sh b/tests/common/mtime.sh deleted file mode 100644 index 910f64d..0000000 --- a/tests/common/mtime.sh +++ /dev/null @@ -1,15 +0,0 @@ -cd "$TEST" - -now=$(epoch_time) - -"$XTOUCH" -mt "@$((now - 60 * 60 * 24 * 7))" last_week -"$XTOUCH" -mt "@$((now - 60 * 60 * 49))" two_days_ago -"$XTOUCH" -mt "@$((now - 60 * 60 * 25))" yesterday -"$XTOUCH" -mt "@$((now - 60 * 60))" one_hour_ago -"$XTOUCH" -mt "@$((now))" now -"$XTOUCH" -mt "@$((now + 60 * 60 * 24))" tomorrow - -bfs_diff . -mindepth 1 \ - \( -mtime -1 -exec printf -- '-mtime -1: %s\n' {} \; -o -true \) \ - \( -mtime 1 -exec printf -- '-mtime 1: %s\n' {} \; -o -true \) \ - \( -mtime +1 -exec printf -- '-mtime +1: %s\n' {} \; -o -true \) |