Lines Matching refs:copy
16 COPY=${OBJ}/copy
18 DIR=${COPY}.dd
19 DIR2=${COPY}.dd2
27 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2}
31 verbose "$tid: simple copy local file to local file"
33 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
34 cmp ${DATA} ${COPY} || fail "corrupted copy"
36 verbose "$tid: simple copy local file to remote file"
38 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
39 cmp ${DATA} ${COPY} || fail "corrupted copy"
41 verbose "$tid: simple copy remote file to local file"
43 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
44 cmp ${DATA} ${COPY} || fail "corrupted copy"
46 verbose "$tid: simple copy local file to remote dir"
48 cp ${DATA} ${COPY}
49 $SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
50 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
52 verbose "$tid: simple copy local file to local dir"
54 cp ${DATA} ${COPY}
55 $SCP $scpopts ${COPY} ${DIR} || fail "copy failed"
56 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
58 verbose "$tid: simple copy remote file to local dir"
60 cp ${DATA} ${COPY}
61 $SCP $scpopts somehost:${COPY} ${DIR} || fail "copy failed"
62 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
67 cp ${DATA} ${DIR}/copy
68 $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
69 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
74 cp ${DATA} ${DIR}/copy
75 $SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
76 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
81 cp ${DATA} ${DIR}/copy
82 $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
83 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
95 cp -p ${DATA} ${DIR}/copy
97 cp ${DATA} ${DIR2}/copy
98 chmod 660 ${DIR2}/copy
99 $SUDO chown root ${DIR2}/copy
101 $SUDO diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
102 $SUDO rm ${DIR2}/copy
121 echo a > ${COPY}
123 $SCP $scpopts ${DATA} ${COPY} ${COPY2}
124 cmp ${COPY} ${COPY2} >/dev/null && fail "corrupt target"