summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-11-21 14:40:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-11-21 14:40:46 -0500
commitfc98276e1401366fd91a437af3e7fa5f1471f94e (patch)
tree5758c00b122c2d7737e731a5ca3de6b356d6f725 /tests.sh
parentcd09f52da8596295841cb832d84f0e728bff449d (diff)
downloadbfs-fc98276e1401366fd91a437af3e7fa5f1471f94e.tar.xz
Fix -execdir for /
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index ba731eb..3d3d10b 100755
--- a/tests.sh
+++ b/tests.sh
@@ -522,7 +522,21 @@ function test_0097() {
(cd scratch && "$BFS" -delete)
}
-for i in {1..97}; do
+function test_0098() {
+ bfs_diff / -maxdepth 0 -execdir pwd ';'
+}
+
+function test_0099() {
+ # Don't prepend ./ for absolute paths in -execdir
+ bfs_diff / -maxdepth 0 -execdir echo '{}' ';'
+}
+
+function test_0100() {
+ # // is canonicalized to /
+ bfs_diff // -maxdepth 0 -execdir echo '{}' ';'
+}
+
+for i in {1..100}; do
test="test_$(printf '%04d' $i)"
if [ -t 1 ]; then