From 71c8f67cb861f5334d853a23b7aafa3c97a802f6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 2 Jan 2017 21:23:42 -0700 Subject: tests: Add tests for -quit --- tests.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'tests.sh') 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 -- cgit v1.2.3