• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.sbin/etcupdate/tests/

Lines Matching refs:TEST

65 TEST=$WORKDIR/test
76 rm -rf $OLD $NEW $TEST $CONFLICTS
82 $TEST/$i/$j/$k
98 mkdir $TEST/first/difftype/second/fifo
103 ln -s "test link" $TEST/first/difflinks/second/link
108 echo "bar" > $TEST/first/difffiles/second/file
114 mkfifo $TEST/second/second/difftype/dir
119 ln -s "test link" $TEST/second/second/difflinks/link
124 echo "test" > $TEST/second/second/difffiles/file
136 echo "foo" > $TEST/difftype/difftype/difftype/one
139 ln -s "bar" $TEST/difftype/difftype/difftype/two
147 ln -s "test" $TEST/difftype/difftype/difflinks/link
155 echo "bar" > $TEST/difftype/difftype/difffiles/file
167 echo "test" > $TEST/difflinks/difftype/difftype/link
174 ln -s "test" $TEST/difflinks/difflinks/difflinks/link
186 mkfifo $TEST/difffiles/difftype/difftype/file
199 cat > $TEST/difffiles/difffiles/difffiles/conflict <<EOF
204 mkdir -p $OLD/adddir $NEW/adddir $TEST/adddir
210 touch $TEST/adddir/conflict
213 mkdir -p $OLD/rmdir $NEW/rmdir $TEST/rmdir
217 for i in $OLD $TEST; do
220 echo "foo" > $TEST/rmdir/extra/localfile.txt
224 for i in $OLD $TEST; do
228 mkdir $TEST/rmdir/conflict/difftype
231 for i in $OLD $NEW $TEST; do
241 for i in $OLD $TEST; do
245 mkfifo $TEST/dirchange/fromdir/extradir/fifo
251 for i in $OLD $TEST; do
255 echo "bar" > $TEST/dirchange/fromdir/conflict/somefile
264 echo "bar" > $TEST/dirchange/todir/difffile
271 mkfifo $TEST/dirchange/todir/difftype
274 # $1 - relative path to file that should be missing from TEST
277 if [ -e $TEST/$1 -o -L $TEST/$1 ]; then
283 # $1 - relative path to file that should be present in TEST
286 if ! [ -e $TEST/$1 -o -L $TEST/$1 ]; then
292 # $1 - relative path to file that should be a fifo in TEST
295 if ! [ -p $TEST/$1 ]; then
301 # $1 - relative path to file that should be a directory in TEST
304 if ! [ -d $TEST/$1 ]; then
310 # $1 - relative path to file that should be a symlink in TEST
316 if ! [ -L $TEST/$1 ]; then
320 val=`readlink $TEST/$1`
328 # $1 - relative path to regular file that should be present in TEST
335 if ! [ -f $TEST/$1 ]; then
339 contents=`cat $TEST/$1`
345 sum=`md5 -q $TEST/$1`
393 $COMMAND -r -d $WORKDIR -D $TEST > $WORKDIR/test.out
422 Directory mismatch: $TEST/adddir/conflict (regular file)
423 Directory mismatch: $TEST/dirchange/todir/difffile (regular file)
424 Directory mismatch: $TEST/dirchange/todir/difftype (fifo file)
514 $COMMAND -r -A '/first*' -A '/second* /*di*' -d $WORKDIR -D $TEST > \