mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 11:59:15 +00:00
improve tests
This commit is contained in:
@@ -83,8 +83,8 @@ echo "not empty" >> ${tmps}/dotfiles/d1/notempty
|
|||||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V
|
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V
|
||||||
|
|
||||||
# test existence
|
# test existence
|
||||||
[ -e ${tmpd}/d1/empty ] && exit 1
|
[ -e ${tmpd}/d1/empty ] && echo 'empty should not exist' && exit 1
|
||||||
[ ! -e ${tmpd}/d1/notempty ] && exit 1
|
[ ! -e ${tmpd}/d1/notempty ] && echo 'not empty should exist' && exit 1
|
||||||
|
|
||||||
# through the dotfile
|
# through the dotfile
|
||||||
cat > ${cfg} << _EOF
|
cat > ${cfg} << _EOF
|
||||||
@@ -112,8 +112,8 @@ rm -rf ${tmpd}/*
|
|||||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V
|
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V
|
||||||
|
|
||||||
# test existence
|
# test existence
|
||||||
[ -e ${tmpd}/d1/empty ] && exit 1
|
[ -e ${tmpd}/d1/empty ] && echo 'empty should not exist' && exit 1
|
||||||
[ ! -e ${tmpd}/d1/notempty ] && exit 1
|
[ ! -e ${tmpd}/d1/notempty ] && echo 'not empty should exist' && exit 1
|
||||||
|
|
||||||
## CLEANING
|
## CLEANING
|
||||||
rm -rf ${tmps} ${tmpd}
|
rm -rf ${tmps} ${tmpd}
|
||||||
|
|||||||
Reference in New Issue
Block a user