Lines Matching refs:testf
30 printf 'test\n123\r456\r\n789\0z' >testf
32 install testf ""
36 printf 'test\n123\r456\r\n789\0z' >testf
37 atf_check install "$@" testf copyf
38 cmp testf copyf || atf_fail "bad copy"
39 [ ! testf -nt copyf ] || atf_fail "bad timestamp"
76 [ ! testf -ot copyf ] || atf_fail "bad timestamp 2"
80 printf 'test\n123\r456\r\n789\0z' >testf
82 atf_check -s not-exit:0 -o empty -e match:. install "$@" testf testf
83 cmp testf testf2 || atf_fail "file changed after self-copy attempt"
107 printf 'test\n123\r456\r\n789\0z' >testf
109 atf_check install "$@" testf otherf
110 cmp testf otherf || atf_fail "bad overwrite"
111 [ ! testf -nt otherf ] || atf_fail "bad timestamp"
135 printf 'test\n123\r456\r\n789\0z' >testf
137 atf_check install "$@" testf otherf
138 cmp testf otherf || atf_fail "bad overwrite"
139 [ ! testf -nt otherf ] || atf_fail "bad timestamp"
163 printf 'test\n123\r456\r\n789\0z' >testf
166 atf_check install -b -B.bak "$@" testf otherf
167 cmp testf otherf || atf_fail "bad overwrite"
168 [ ! testf -nt otherf ] || atf_fail "bad timestamp"
207 printf 'test\n123\r456\r\n789\0z' >testf
208 atf_check install -s "$@" testf copyf
209 [ ! testf -nt copyf ] || atf_fail "bad timestamp"
226 printf 'test\n123\r456\r\n789\0z' >testf
228 atf_check install -s "$@" testf copyf
229 [ ! testf -nt copyf ] || atf_fail "bad timestamp"
246 printf 'test\n123\r456\r\n789\0z' >testf
248 atf_check install -s "$@" testf copyf
249 [ ! testf -nt copyf ] || atf_fail "bad timestamp"
267 printf 'test\n123\r456\r\n789\0z' >testf
268 atf_check install -s testf copyf
269 [ ! testf -nt copyf ] || atf_fail "bad timestamp"
276 printf 'test\n123\r456\r\n789\0z' >testf
277 atf_check install -l h testf copyf
278 [ testf -ef copyf ] || atf_fail "not same file"
284 printf 'test\n123\r456\r\n789\0z' >testf
285 atf_check install -l s testf copyf
286 [ testf -ef copyf ] || atf_fail "not same file"
292 printf 'test\n123\r456\r\n789\0z' >testf
293 atf_check install -l sa testf copyf
294 [ testf -ef copyf ] || atf_fail "not same file"
305 printf 'test\n123\r456\r\n789\0z' >testf
306 atf_check install -l sr testf copyf
307 [ testf -ef copyf ] || atf_fail "not same file"
321 src_path=a/b/c/testf
342 src_path=a//b//c//testf
363 src_path=testf
423 printf "test" >testf
424 atf_check chown "$fu:$fg" testf
425 atf_check chmod "$m" testf
427 atf_check install testf testc
430 atf_check install -o "$cu" testf testc
433 atf_check install -g "$cg" testf testc
436 atf_check install -o "$cu" -g "$cg" testf testc
439 atf_check install -m "$cm" testf testc
442 atf_check install -o "$cu" -m "$cm" testf testc
445 atf_check install -g "$cg" -m "$cm" testf testc
448 atf_check install -o "$cu" -g "$cg" -m "$cm" testf testc
462 printf "test" >testf
463 atf_check chown "$fu:$fg" testf
464 atf_check chmod "$m" testf
466 atf_check install -U testf testc
469 atf_check install -U -o "$cu" testf testc
472 atf_check install -U -g "$cg" testf testc
475 atf_check install -U -o "$cu" -g "$cg" testf testc
478 atf_check install -U -m "$cm" testf testc
481 atf_check install -U -o "$cu" -m "$cm" testf testc
484 atf_check install -U -g "$cg" -m "$cm" testf testc
487 atf_check install -U -o "$cu" -g "$cg" -m "$cm" testf testc