• Home
  • Raw
  • Download

Lines Matching full:dir

16 DIR=${COPY}.dd
26 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2}
27 mkdir ${DIR} ${DIR2}
45 verbose "$tid: simple copy local file to remote dir"
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"
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"
60 $SCP $scpopts somehost:${COPY} ${DIR} || fail "copy failed"
61 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
63 verbose "$tid: recursive local dir to remote dir"
66 cp ${DATA} ${DIR}/copy
67 $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
68 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
70 verbose "$tid: recursive local dir to local dir"
73 cp ${DATA} ${DIR}/copy
74 $SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
75 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
77 verbose "$tid: recursive remote dir to local dir"
80 cp ${DATA} ${DIR}/copy
81 $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
82 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
86 (cd ${DIR} && \
94 cp -p ${DATA} ${DIR}/copy
95 cp -p ${DATA} ${DIR}/copy2
99 $SCP -p $scpopts somehost:${DIR}/\* ${DIR2} >/dev/null 2>&1
100 $SUDO diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
107 export DIR SCPTESTMODE
109 $SCP $scpopts somehost:${DATA} ${DIR} >/dev/null 2>/dev/null
110 [ -d {$DIR}/rootpathdir ] && fail "allows dir relative to root dir"
111 [ -d ${DIR}/dotpathdir ] && fail "allows dir creation in non-recursive mode"
115 [ -d ${DIR}/dotpathdir ] && fail "allows dir creation outside of subdir"