summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-04-16 12:14:02 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-04-16 12:14:02 -0400
commite42e0f1012229e4473919c738ab7e4bcaff8033a (patch)
treed4e7d16a4e2ece4b4de1aac1d8075369d8d645a0 /tests.sh
parent455b724279c1cb4aefc0d2f81b65641990dd7689 (diff)
downloadbfs-e42e0f1012229e4473919c738ab7e4bcaff8033a.tar.xz
Implement -X
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index db223ab..61aab2a 100755
--- a/tests.sh
+++ b/tests.sh
@@ -88,6 +88,8 @@ function make_weirdnames() {
touchp "$1/,/f"
touchp "$1/)/g"
touchp "$1/.../h"
+ touchp "$1/\\/i"
+ touchp "$1/ /j"
}
make_weirdnames "$TMP/weirdnames"
@@ -162,6 +164,7 @@ posix_tests=(
bsd_tests=(
test_P
test_P_slash
+ test_X
test_follow
test_samefile
test_name_slash
@@ -548,6 +551,10 @@ function test_L() {
bfs_diff -L links 2>/dev/null
}
+function test_X() {
+ bfs_diff -X weirdnames 2>/dev/null
+}
+
function test_follow() {
bfs_diff links -follow 2>/dev/null
}