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

more tests

This commit is contained in:
deadc0de6
2023-12-28 09:44:50 +01:00
committed by deadc0de
parent 25113b9ed1
commit a3a6728037

View File

@@ -163,7 +163,8 @@ clean_both
create_in_dotpath create_in_dotpath
create_in_dst create_in_dst
echo newfile "${tmpd}/mpv/watch_later/newfile" echo newfile "${tmpd}/mpv/watch_later/newfile"
rm -rf "${dotpath}/mpv/watch_later" [ ! -e "${dotpath}/mpv/watch_later" ] && echo "1 does not exist!" && exit 1
rm -r "${dotpath}/mpv/watch_later"
cd "${ddpath}" | ${bin} update -f -c "${cfg1}" -p p1 -V cd "${ddpath}" | ${bin} update -f -c "${cfg1}" -p p1 -V
[ -d "${dotpath}/mpv/watch_later" ] && echo "update (cfg1) failed" && exit 1 [ -d "${dotpath}/mpv/watch_later" ] && echo "update (cfg1) failed" && exit 1
@@ -173,7 +174,8 @@ clean_both
create_in_dotpath create_in_dotpath
create_in_dst create_in_dst
echo newfile "${tmpd}/mpv/watch_later/newfile" echo newfile "${tmpd}/mpv/watch_later/newfile"
rm -rf "${dotpath}/mpv/watch_later" [ ! -e "${dotpath}/mpv/watch_later" ] && echo "2 does not exist!" && exit 1
rm -r "${dotpath}/mpv/watch_later"
cd "${ddpath}" | ${bin} update -f -c "${cfg2}" -p p1 -V cd "${ddpath}" | ${bin} update -f -c "${cfg2}" -p p1 -V
[ -d "${dotpath}/mpv/watch_later" ] && echo "update (cfg2) failed" && exit 1 [ -d "${dotpath}/mpv/watch_later" ] && echo "update (cfg2) failed" && exit 1
@@ -203,28 +205,32 @@ clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
rm -rf "${dotpath}/mpv/watch_later" [ ! -e "${dotpath}/mpv/watch_later" ] && echo "3 does not exist!" && exit 1
rm -r "${dotpath}/mpv/watch_later"
cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V
clean_both clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
rm -rf "${tmpd}/mpv/watch_later" [ ! -e "${tmpd}/mpv/watch_later" ] && echo "4 does not exist!" && exit 1
rm -r "${tmpd}/mpv/watch_later"
cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V
clean_both clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
rm -rf "${dotpath}/mpv/watch_later" [ ! -e "${dotpath}/mpv/watch_later" ] && echo "5 does not exist!" && exit 1
rm -r "${dotpath}/mpv/watch_later"
cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V
clean_both clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
rm -rf "${tmpd}/mpv/watch_later" [ ! -e "${tmpd}/mpv/watch_later" ] && echo "6 does not exist!" && exit 1
rm -r "${tmpd}/mpv/watch_later"
cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V
################################################### ###################################################