Lines Matching refs:COPY
10 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd
12 rm -f ${COPY}
14 echo "get $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
16 test -f ${COPY} && fail "existing copy after get nonexistent"
18 rm -f ${COPY}.dd/*
23 test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent"
26 rm -f ${COPY}
28 echo "put $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
30 test -f ${COPY} && fail "existing copy after put nonexistent"
32 rm -f ${COPY}.dd/*
34 echo "put /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
37 test -f ${COPY}.dd/$x && fail "existing copy after nonexistent"
40 rm -f ${COPY}
42 echo "rename $NONEXIST ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
44 test -f ${COPY}.1 && fail "file exists after rename nonexistent"
46 rm -rf ${COPY} ${COPY}.dd
47 cp $DATA $COPY
48 mkdir ${COPY}.dd
50 echo "rename $COPY ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
52 test -f ${COPY} || fail "oldname missing after rename target exists (directory)"
53 test -d ${COPY}.dd || fail "newname missing after rename target exists (directory)"
54 cmp $DATA ${COPY} >/dev/null 2>&1 || fail "corrupted oldname after rename target exists (directory)"
56 rm -f ${COPY}.dd/*
57 rm -rf ${COPY}
58 cp ${DATA2} ${COPY}
60 echo "put /bin/l* $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1
61 cmp ${DATA2} ${COPY} || fail "put successed when it should have failed"
63 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd