Lines Matching full:copy
16 DIR=${COPY}.dd
17 DIR2=${COPY}.dd2
26 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2}
30 verbose "$tid: simple copy local file to local file"
32 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
33 cmp ${DATA} ${COPY} || fail "corrupted copy"
35 verbose "$tid: simple copy local file to remote file"
37 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
38 cmp ${DATA} ${COPY} || fail "corrupted copy"
40 verbose "$tid: simple copy remote file to local file"
42 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
43 cmp ${DATA} ${COPY} || fail "corrupted copy"
45 verbose "$tid: simple copy local file to remote dir"
47 cp ${DATA} ${COPY}
48 $SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
49 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
51 verbose "$tid: simple copy local file to local dir"
53 cp ${DATA} ${COPY}
54 $SCP $scpopts ${COPY} ${DIR} || fail "copy failed"
55 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
57 verbose "$tid: simple copy remote file to local dir"
59 cp ${DATA} ${COPY}
60 $SCP $scpopts somehost:${COPY} ${DIR} || fail "copy failed"
61 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
66 cp ${DATA} ${DIR}/copy
67 $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
68 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
73 cp ${DATA} ${DIR}/copy
74 $SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
75 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
80 cp ${DATA} ${DIR}/copy
81 $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
82 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
94 cp -p ${DATA} ${DIR}/copy
96 cp ${DATA} ${DIR2}/copy
97 chmod 660 ${DIR2}/copy
98 $SUDO chown root ${DIR2}/copy
100 $SUDO diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
101 $SUDO rm ${DIR2}/copy
120 echo a > ${COPY}
122 $SCP $scpopts ${DATA} ${COPY} ${COPY2}
123 cmp ${COPY} ${COPY2} >/dev/null && fail "corrupt target"