1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 15:04:43 +00:00

improve tests

This commit is contained in:
deadc0de6
2022-05-03 23:13:51 +02:00
committed by deadc0de
parent c31f8ffcd5
commit 3dfa53469e
26 changed files with 108 additions and 71 deletions

View File

@@ -75,8 +75,8 @@ _EOF
#cat ${cfg}
# import
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V ${tmpd}/adir
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V ${tmpd}/file3
cd ${ddpath} | ${bin} import -f -c ${cfg} -p p1 -V ${tmpd}/adir
cd ${ddpath} | ${bin} import -f -c ${cfg} -p p1 -V ${tmpd}/file3
cat ${cfg}
@@ -97,8 +97,8 @@ nb=`cat ${cfg} | grep f_file3 | wc -l`
cntpre=`find ${tmps}/dotfiles -type f | wc -l`
# reimport
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V ${tmpd}/adir
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V ${tmpd}/file3
cd ${ddpath} | ${bin} import -f -c ${cfg} -p p1 -V ${tmpd}/adir
cd ${ddpath} | ${bin} import -f -c ${cfg} -p p1 -V ${tmpd}/file3
cntpost=`find ${tmps}/dotfiles -type f | wc -l`
@@ -124,7 +124,7 @@ echo "fil2" > ${d}/file2
mkfifo ${d}/fifo
# import
cd ${ddpath} | ${bin} import -c ${cfg} -p p2 -V ${d}
cd ${ddpath} | ${bin} import -f -c ${cfg} -p p2 -V ${d}
# ensure exists and is not link
[ ! -d ${tmps}/dotfiles/${d} ] && echo "not a directory" && exit 1