mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 09:49:17 +00:00
adding test for #261
This commit is contained in:
@@ -69,6 +69,7 @@ actions:
|
|||||||
postaction1: echo 'postinside' > ${tmpa}/postinside
|
postaction1: echo 'postinside' > ${tmpa}/postinside
|
||||||
nakedaction: echo 'naked' > ${tmpa}/naked
|
nakedaction: echo 'naked' > ${tmpa}/naked
|
||||||
nakedaction1: echo 'nakedinside' > ${tmpa}/nakedinside
|
nakedaction1: echo 'nakedinside' > ${tmpa}/nakedinside
|
||||||
|
appendaction: echo 'newline' >> ${tmpa}/append
|
||||||
config:
|
config:
|
||||||
backup: true
|
backup: true
|
||||||
create: true
|
create: true
|
||||||
@@ -77,6 +78,7 @@ config:
|
|||||||
- preaction
|
- preaction
|
||||||
- postaction
|
- postaction
|
||||||
- nakedaction
|
- nakedaction
|
||||||
|
- appendaction
|
||||||
dotfiles:
|
dotfiles:
|
||||||
f_abc:
|
f_abc:
|
||||||
dst: ${tmpd}/abc
|
dst: ${tmpd}/abc
|
||||||
@@ -114,6 +116,12 @@ grep postinside ${tmpa}/postinside >/dev/null
|
|||||||
grep naked ${tmpa}/naked >/dev/null
|
grep naked ${tmpa}/naked >/dev/null
|
||||||
grep nakedinside ${tmpa}/nakedinside >/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
|
# clear
|
||||||
rm -f ${tmpa}/naked* ${tmpa}/pre* ${tmpa}/post* ${tmpd}/abc
|
rm -f ${tmpa}/naked* ${tmpa}/pre* ${tmpa}/post* ${tmpd}/abc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user