summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-01-02 21:23:42 -0700
committerTavian Barnes <tavianator@tavianator.com>2017-01-02 21:23:42 -0700
commit71c8f67cb861f5334d853a23b7aafa3c97a802f6 (patch)
tree7058aeb566153cda0bbc7445b8cb4cb0ed074c3c /tests.sh
parent9f297d68f5bf80eed89feb7dbf465339f62d8ba0 (diff)
downloadbfs-71c8f67cb861f5334d853a23b7aafa3c97a802f6.tar.xz
tests: Add tests for -quit
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 3729133..444112d 100755
--- a/tests.sh
+++ b/tests.sh
@@ -760,9 +760,29 @@ function test_0122() {
bfs_diff basic -type f -size 1T
}
+function test_0123() {
+ [ "$BSD" -o "$GNU" ] || return 0
+ bfs_diff basic/g -print -name g -quit
+}
+
+function test_0124() {
+ [ "$BSD" -o "$GNU" ] || return 0
+ bfs_diff basic/g -print -name h -quit
+}
+
+function test_0125() {
+ [ "$BSD" -o "$GNU" ] || return 0
+ bfs_diff basic/g -depth -print -name g -quit
+}
+
+function test_0126() {
+ [ "$BSD" -o "$GNU" ] || return 0
+ bfs_diff basic/g -depth -print -name h -quit
+}
+
result=0
-for i in {1..122}; do
+for i in {1..126}; do
test="test_$(printf '%04d' $i)"
if [ -t 1 ]; then