summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-27 14:35:19 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-27 14:35:19 -0500
commitba967212e94110986e4b7512a75a9e8aa519fd19 (patch)
tree7af4ba5bd3dd3b470f98bb328f5885d33787569e /tests.sh
parent5e94b28d4a62cd590f173e0358cb3272073e4585 (diff)
downloadbfs-ba967212e94110986e4b7512a75a9e8aa519fd19.tar.xz
Implement (most of) -newerXY.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests.sh b/tests.sh
index 77ba586..a6c40b7 100755
--- a/tests.sh
+++ b/tests.sh
@@ -256,14 +256,18 @@ function test_0046() {
}
function test_0047() {
- find_diff -L "$basic" -daystart -mtime 0
+ find_diff "$basic" -daystart -mtime 0
}
function test_0048() {
- find_diff -L "$basic" -daystart -daystart -mtime 0
+ find_diff "$basic" -daystart -daystart -mtime 0
}
-for i in {1..48}; do
+function test_0049() {
+ find_diff "$basic" -newermc "$basic/e/f"
+}
+
+for i in {1..49}; do
test="test_$(printf '%04d' $i)"
"$test" "$dir"
status=$?