mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 18:44:16 +00:00
tests
This commit is contained in:
4
tests-ng/clear-workdir.sh
vendored
4
tests-ng/clear-workdir.sh
vendored
@@ -62,8 +62,10 @@ _EOF
|
|||||||
|
|
||||||
echo "[+] install (1)"
|
echo "[+] install (1)"
|
||||||
cd "${ddpath}" | ${bin} install -c "${cfg}" -f -p p1 --verbose | grep '^1 dotfile(s) installed.$'
|
cd "${ddpath}" | ${bin} install -c "${cfg}" -f -p p1 --verbose | grep '^1 dotfile(s) installed.$'
|
||||||
[ "$?" != "0" ] && exit 1
|
ret="$?"
|
||||||
|
[ "${ret}" != "0" ] && echo "install returned ${ret}" && exit 1
|
||||||
|
|
||||||
|
# checks
|
||||||
[ ! -e "${tmpd}"/x ] && echo "f_x not installed" && exit 1
|
[ ! -e "${tmpd}"/x ] && echo "f_x not installed" && exit 1
|
||||||
[ ! -h "${tmpd}"/x ] && echo "f_x not symlink" && exit 1
|
[ ! -h "${tmpd}"/x ] && echo "f_x not symlink" && exit 1
|
||||||
[ ! -e "${DOTDROP_WORKDIR}"/"${tmpd}"/x ] && echo "f_x not in workdir (${DOTDROP_WORKDIR}/${tmpd})" && exit 1
|
[ ! -e "${DOTDROP_WORKDIR}"/"${tmpd}"/x ] && echo "f_x not in workdir (${DOTDROP_WORKDIR}/${tmpd})" && exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user