1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-15 22:31:12 +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

@@ -70,9 +70,9 @@ create_conf ${cfg} # sets token
# import
echo "[+] import"
cd ${ddpath} | ${bin} import --verbose -c ${cfg} ${tmpd}/program || exit 1
cd ${ddpath} | ${bin} import --verbose -c ${cfg} ${tmpd}/config || exit 1
cd ${ddpath} | ${bin} import --verbose -c ${cfg} ${tmpd}/vscode || exit 1
cd ${ddpath} | ${bin} import -f --verbose -c ${cfg} ${tmpd}/program || exit 1
cd ${ddpath} | ${bin} import -f --verbose -c ${cfg} ${tmpd}/config || exit 1
cd ${ddpath} | ${bin} import -f --verbose -c ${cfg} ${tmpd}/vscode || exit 1
# add files on filesystem
echo "[+] add files"
@@ -149,7 +149,7 @@ mkdir -p ${tmpd}/.zsh/plugins
touch ${tmpd}/.zsh/plugins/someplugin
echo "[+] import .zsh"
cd ${ddpath} | ${bin} import -c ${cfg} ${tmpd}/.zsh
cd ${ddpath} | ${bin} import -f -c ${cfg} ${tmpd}/.zsh
# no diff expected
echo "[+] comparing .zsh"