Home | History | Annotate | Download | only in regress

Lines Matching refs:COPY

9 COPY=${OBJ}/copy
12 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd
14 rm -f ${COPY}
16 echo "get $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
18 test -f ${COPY} && fail "existing copy after get nonexistent"
20 rm -f ${COPY}.dd/*
25 test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent"
28 rm -f ${COPY}
30 echo "put $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
32 test -f ${COPY} && fail "existing copy after put nonexistent"
34 rm -f ${COPY}.dd/*
36 echo "put /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
39 test -f ${COPY}.dd/$x && fail "existing copy after nonexistent"
42 rm -f ${COPY}
44 echo "rename $NONEXIST ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
46 test -f ${COPY}.1 && fail "file exists after rename nonexistent"
48 rm -rf ${COPY} ${COPY}.dd
49 cp $DATA $COPY
50 mkdir ${COPY}.dd
52 echo "rename $COPY ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
54 test -f ${COPY} || fail "oldname missing after rename target exists (directory)"
55 test -d ${COPY}.dd || fail "newname missing after rename target exists (directory)"
56 cmp $DATA ${COPY} >/dev/null 2>&1 || fail "corrupted oldname after rename target exists (directory)"
58 rm -f ${COPY}.dd/*
59 rm -rf ${COPY}
60 cp ${DATA2} ${COPY}
62 echo "put /bin/l* $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1
63 cmp ${DATA2} ${COPY} || fail "put successed when it should have failed"
65 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd