Fixed Savannah bug #19970, taking into account the limitations of the gnulib _Bool...
[findutils.git] / find / testsuite / find.posix / links.exp
blobadb0fae5d377ebc1502d36b96b77d6bd68d1f7df
1 # tests for -links
2 exec rm -rf tmp
3 exec mkdir tmp
4 touch tmp/file1 tmp/file2 tmp/file3
6 # four links including the original file
7 exec ln tmp/file1 tmp/1a
8 exec ln tmp/file1 tmp/1b
9 exec ln tmp/file1 tmp/1c
11 # five links including the original file
12 exec ln tmp/file2 tmp/2a
13 exec ln tmp/file2 tmp/2b
14 exec ln tmp/file2 tmp/2c
15 exec ln tmp/file2 tmp/2d
17 # six links including the original file
18 exec ln tmp/file3 tmp/3a
19 exec ln tmp/file3 tmp/3b
20 exec ln tmp/file3 tmp/3c
21 exec ln tmp/file3 tmp/3d
22 exec ln tmp/file3 tmp/3e
24 find_start p { tmp/file1 tmp/file2 tmp/file3 -type f ( ( -links -5 -exec echo under5 \{\} \; ) -o ( -links 5 -exec echo exactly5 \{\} \; ) -o ( -links +5 -exec echo over5 \{\} \; ) ) }
25 exec rm -rf tmp