summaryrefslogtreecommitdiffstats
path: root/tests/common/atime.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-07-23 15:19:17 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-07-23 15:22:02 -0400
commit972dcc2973b160cdaad2c4ce0df3616a9f234759 (patch)
treee33713ed22a3e37f0bd3fda2a4808dc152173674 /tests/common/atime.sh
parent4649cf3132217fe9f975f7e16f47928e5d7680bf (diff)
downloadbfs-972dcc2973b160cdaad2c4ce0df3616a9f234759.tar.xz
tests: Make more tests POSIX-compliant
Diffstat (limited to 'tests/common/atime.sh')
-rw-r--r--tests/common/atime.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/common/atime.sh b/tests/common/atime.sh
deleted file mode 100644
index 4f2299d..0000000
--- a/tests/common/atime.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-cd "$TEST"
-
-now=$(epoch_time)
-
-"$XTOUCH" -at "@$((now - 60 * 60 * 24 * 7))" last_week
-"$XTOUCH" -at "@$((now - 60 * 60 * 49))" two_days_ago
-"$XTOUCH" -at "@$((now - 60 * 60 * 25))" yesterday
-"$XTOUCH" -at "@$((now - 60 * 60))" one_hour_ago
-"$XTOUCH" -at "@$((now))" now
-"$XTOUCH" -at "@$((now + 60 * 60 * 24))" tomorrow
-
-bfs_diff . -mindepth 1 \
- \( -atime -1 -exec printf -- '-atime -1: %s\n' {} \; -o -true \) \
- \( -atime 1 -exec printf -- '-atime 1: %s\n' {} \; -o -true \) \
- \( -atime +1 -exec printf -- '-atime +1: %s\n' {} \; -o -true \)