summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-06-09 18:37:58 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-06-09 18:37:58 -0400
commitcad5dc5cc50a43203971939fd2806bfbf9a5dac9 (patch)
treee42db8dbef9c6896945473668534c709f7165b5f /tests.sh
parentea92e8e4b24ea749e73bc6e9bc17371b07c723a3 (diff)
downloadbfs-cad5dc5cc50a43203971939fd2806bfbf9a5dac9.tar.xz
Allow flags like -L before ',' or ')' as pathnames.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index ead81f6..5fd4a9b 100755
--- a/tests.sh
+++ b/tests.sh
@@ -344,6 +344,21 @@ function test_0061() {
}
function test_0062() {
+ cd "$weirdnames"
+ find_diff -L '-' '(-' '!-' ',' ')' './(' './!' \( \! -print , -print \)
+}
+
+function test_0063() {
+ cd "$weirdnames"
+ find_diff -L ',' -true
+}
+
+function test_0064() {
+ cd "$weirdnames"
+ find_diff -follow ',' -true
+}
+
+function test_0065() {
find "$basic" -fprint "$out/out.find"
"$BFS" "$basic" -fprint "$out/out.bfs"
@@ -352,7 +367,7 @@ function test_0062() {
diff -u "$out/out.find" "$out/out.bfs"
}
-for i in {1..62}; do
+for i in {1..65}; do
test="test_$(printf '%04d' $i)"
("$test" "$dir")
status=$?