Lines Matching refs:follow
177 # Now we want to do a series of follow tests.
186 follow=$tdir/follow
187 moved=$tdir/follow.moved
193 echo -e "a\nb\nc" > $follow
194 $PROG -f $follow > $out 2> /dev/null &
197 echo -e "d\ne\nf" >> $follow
205 rm $follow
210 echo -e "a\nb\nc" > $follow
211 $PROG -f $follow > $out 2> /dev/null &
214 mv $follow $moved
229 echo -e "a\nb\nc" > $follow
230 $PROG -f $follow > $out 2> /dev/null &
233 echo -e "d\ne\nf" >> $follow
235 echo -e "g\nh\ni" > $follow
243 rm $follow
248 echo -e "a\nb\nc" > $follow
250 $PROG -f $follow > $out 2> /dev/null &
253 echo -e "d\ne\nf" >> $follow
255 echo -e "g\nh\ni\nj\nk\nl\nm\no\np\nq" > $follow
263 rm $follow
266 # Verify that we can follow the moved file and correctly see a truncation.
268 echo -e "a\nb\nc" > $follow
269 $PROG -f $follow > $out 2> /dev/null &
272 mv $follow $moved
287 # Verify that capital-F follow properly deals with truncation
289 echo -e "a\nb\nc" > $follow
290 $PROG -F $follow > $out 2> /dev/null &
293 echo -e "d\ne\nf" >> $follow
295 echo -e "g\nh\ni" > $follow
303 rm $follow
306 # Verify that capital-F follow _won't_ follow the moved file and will
309 echo -e "a\nb\nc" > $follow
310 $PROG -F $follow > $out 2> /dev/null &
313 mv $follow $moved
322 echo -e "d\ne\nf" > $follow
335 echo -e "one" > $follow
337 $PROG -f $follow $moved > $out 2> /dev/null &
340 echo -e "three" >> $follow
344 echo -e "five" >> $follow
354 ==> $follow <==
359 ==> $follow <==
365 ==> $follow <==
369 rm $follow $moved
377 cat /dev/null > $follow
378 dtrace -c "$PROG -f $follow" -s /dev/stdin > $out <<EOF
386 system("cat /dev/null > $follow");
392 system("echo %d >> $follow", j++);
405 rm $follow
407 cat /dev/null > $follow
408 dtrace -c "$PROG -f $follow" -s /dev/stdin > $out <<EOF
416 system("mv $follow $moved");
424 i < 5 ? "$follow" : "$moved");
443 cat /dev/null > $follow
444 ( $PROG -F $follow > $out ) &
446 echo -e "a\nb\nc\nd\ne\nf" >> $follow
447 logadm -c $follow
449 echo -e "g\nh\ni" >> $follow
463 cat /dev/null > $follow
464 ( $PROG -f $follow > $out ) &
466 ( let i=0 ; while true; do echo $i > $follow ; sleep 0.1; let i=i+1 ; done ) &