summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-04 16:33:53 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-04 16:33:53 -0500
commitd696346689e161ee8a5623182ed65ab119adb203 (patch)
tree3c55935d75f847a21c82c1ca7e400971f4f12fb2 /tests.sh
parent0a3754f8b66fc50dafeb61711679fc85c1e38038 (diff)
downloadbfs-d696346689e161ee8a5623182ed65ab119adb203.tar.xz
Implement -[ac]?newer.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 23a9aba..a45af5f 100755
--- a/tests.sh
+++ b/tests.sh
@@ -124,7 +124,17 @@ function test_0017() {
find_diff "$1" -uid -10000
}
-for i in {1..17}; do
+function test_0018() {
+ basic_structure "$1"
+ find_diff "$1" -newer "$1/e/f"
+}
+
+function test_0019() {
+ basic_structure "$1"
+ find_diff "$1" -cnewer "$1/e/f"
+}
+
+for i in {1..19}; do
dir="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)"
test="test_$(printf '%04d' $i)"
"$test" "$dir"