summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-06-02 14:19:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-06-02 14:19:59 -0400
commit1eeadd8e9402c69afff85b187683bc50292d00a5 (patch)
tree71579104778109fed1848fa32884798cff4ef541 /tests.sh
parentea6155677e0f466d05a0027fdbe29827f4a08c2c (diff)
downloadbfs-1eeadd8e9402c69afff85b187683bc50292d00a5.tar.xz
Implement time units for -{a,B,c,m}time
From FreeBSD find. Closes #75.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index e58993f..5aa5a8d 100755
--- a/tests.sh
+++ b/tests.sh
@@ -389,6 +389,8 @@ bsd_tests=(
test_msince
+ test_mtime_units
+
test_name_slash
test_name_slashes
@@ -2019,6 +2021,10 @@ function test_msince() {
bfs_diff times -msince 1991-12-14T00:01
}
+function test_mtime_units() {
+ bfs_diff times -mtime +500w400d300h200m100s
+}
+
function test_size_T() {
bfs_diff basic -type f -size 1T
}