Lines Matching refs:cmp

29 	atf_set "descr" "Test cmp(1)'s handling of non-regular files"
34 atf_check -s exit:0 -o empty -e empty -x "cat a | cmp a -"
35 atf_check -s exit:0 -o empty -e empty -x "cat a | cmp - a"
36 atf_check -s exit:1 -o not-empty -e empty -x "cat b | cmp a -"
37 atf_check -s exit:1 -o not-empty -e empty -x "cat b | cmp - a"
39 atf_check -s exit:0 -o empty -e empty -x "cmp a a <&-"
44 atf_set "descr" "Test cmp(1)'s handling of symlinks"
54 atf_check -s exit:0 cmp a a.lnk
55 atf_check -s exit:0 cmp a.lnk a
56 atf_check -s not-exit:0 -o ignore cmp a b.lnk
57 atf_check -s not-exit:0 -o ignore cmp b.lnk a
58 atf_check -s not-exit:0 -o ignore -e ignore cmp -h a a.lnk
59 atf_check -s not-exit:0 -o ignore -e ignore cmp -h a.lnk a
60 atf_check -s exit:0 cmp -h a.lnk a2.lnk
61 atf_check -s not-exit:0 -o ignore -e ignore cmp -h a.lnk adup.lnk
67 atf_set "descr" "Test cmp(1) -s with file offset skips"
74 atf_check -s exit:0 cmp -s a b 4 3
75 atf_check -s exit:0 cmp -i 4:3 -s a b
76 atf_check -s exit:0 cmp -i 1 -s b c
77 atf_check -s exit:1 -o ignore cmp -z a b 4 3
78 atf_check -s exit:1 -o ignore cmp -i 4:3 -z a b
79 atf_check -s exit:1 -o ignore cmp -i 1 -z a b
85 atf_set "descr" "Test cmp(1) accepting SI suffixes on skips"
94 atf_check -s exit:1 -o ignore cmp -s a b
95 atf_check -s exit:0 cmp -s a b 1k 1k
101 atf_set "descr" "Test cmp(1) -n (limit)"
108 atf_check -s exit:1 -o ignore cmp -s a b
109 atf_check -s exit:0 cmp -sn 4 a b
110 atf_check -s exit:0 cmp -sn 3 a b
111 atf_check -s exit:1 -o ignore cmp -sn 5 a b
115 atf_check -s exit:0 -e empty -x "cat a | cmp -sn 4 b -"
116 atf_check -s exit:0 -e empty -x "cat a | cmp -sn 3 b -"
117 atf_check -s exit:1 -o ignore -x "cat a | cmp -sn 5 b -"
123 atf_set "descr" "Test cmp(1) -b (print bytes)"
131 cmp -b a b
133 cmp -bl a b