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

adding test for #261

This commit is contained in:
deadc0de6
2020-10-01 15:54:55 +02:00
parent 067d01d2de
commit cac703377d

View File

@@ -69,6 +69,7 @@ actions:
postaction1: echo 'postinside' > ${tmpa}/postinside
nakedaction: echo 'naked' > ${tmpa}/naked
nakedaction1: echo 'nakedinside' > ${tmpa}/nakedinside
appendaction: echo 'newline' >> ${tmpa}/append
config:
backup: true
create: true
@@ -77,6 +78,7 @@ config:
- preaction
- postaction
- nakedaction
- appendaction
dotfiles:
f_abc:
dst: ${tmpd}/abc
@@ -114,6 +116,12 @@ grep postinside ${tmpa}/postinside >/dev/null
grep naked ${tmpa}/naked >/dev/null
grep nakedinside ${tmpa}/nakedinside >/dev/null
# test default action run
cd ${ddpath} | ${bin} install -fa -c ${cfg} -p p1 -V
cnt=`cat ${tmpa}/append | wc -l`
[ "${cnt}" != "2" ] && echo "default_actions not run on -a" && exit 1
# clear
rm -f ${tmpa}/naked* ${tmpa}/pre* ${tmpa}/post* ${tmpd}/abc