summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-05-22 13:17:02 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-05-22 13:17:02 -0400
commit8ea44cab76a20f1c5ac473b1651611bea0ee9e6b (patch)
treecd2d47aef86e6ce8fa0fd49a3baa6a5709aba8ae /tests.sh
parenta36577183430607196e88c2b951f2dc71a06dbaf (diff)
downloadbfs-8ea44cab76a20f1c5ac473b1651611bea0ee9e6b.tar.xz
Implement -{exec,ok}{,dir}.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh22
1 files changed, 21 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 006496b..8cf493c 100755
--- a/tests.sh
+++ b/tests.sh
@@ -283,7 +283,27 @@ function test_0053() {
find_diff "$basic" -size 9223372036854775807
}
-for i in {1..53}; do
+function test_0054() {
+ find_diff "$basic" -exec echo '{}' ';'
+}
+
+function test_0055() {
+ find_diff "$basic" -exec echo '-{}-' ';'
+}
+
+function test_0056() {
+ find_diff "$basic" -execdir pwd ';'
+}
+
+function test_0057() {
+ find_diff "$basic" -execdir echo '{}' ';'
+}
+
+function test_0058() {
+ find_diff "$basic" -execdir echo '-{}-' ';'
+}
+
+for i in {1..58}; do
test="test_$(printf '%04d' $i)"
"$test" "$dir"
status=$?