mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 22:45:13 +00:00
add test for included profile
This commit is contained in:
@@ -59,6 +59,10 @@ config:
|
|||||||
backup: true
|
backup: true
|
||||||
create: true
|
create: true
|
||||||
dotpath: dotfiles
|
dotpath: dotfiles
|
||||||
|
actions:
|
||||||
|
pre:
|
||||||
|
preaction: touch ${tmpd}/action.pre
|
||||||
|
postaction: touch ${tmpd}/action.post
|
||||||
dotfiles:
|
dotfiles:
|
||||||
f_abc:
|
f_abc:
|
||||||
dst: ${tmpd}/abc
|
dst: ${tmpd}/abc
|
||||||
@@ -68,6 +72,9 @@ profiles:
|
|||||||
include:
|
include:
|
||||||
- p3
|
- p3
|
||||||
p1:
|
p1:
|
||||||
|
actions:
|
||||||
|
- preaction
|
||||||
|
- postaction
|
||||||
dotfiles:
|
dotfiles:
|
||||||
- f_abc
|
- f_abc
|
||||||
p2:
|
p2:
|
||||||
@@ -77,13 +84,17 @@ profiles:
|
|||||||
include:
|
include:
|
||||||
- p2
|
- p2
|
||||||
_EOF
|
_EOF
|
||||||
|
cat ${cfg}
|
||||||
|
|
||||||
# create the source
|
# create the source
|
||||||
mkdir -p ${tmps}/dotfiles/
|
mkdir -p ${tmps}/dotfiles/
|
||||||
echo "test" > ${tmps}/dotfiles/abc
|
echo "test" > ${tmps}/dotfiles/abc
|
||||||
|
|
||||||
# install
|
# install
|
||||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1
|
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p0 --verbose
|
||||||
|
|
||||||
|
[ ! -e ${tmpd}/action.pre ] && exit 1
|
||||||
|
[ ! -e ${tmpd}/action.post ] && exit 1
|
||||||
|
|
||||||
# compare
|
# compare
|
||||||
cd ${ddpath} | ${bin} compare -c ${cfg} -p p1
|
cd ${ddpath} | ${bin} compare -c ${cfg} -p p1
|
||||||
|
|||||||
Reference in New Issue
Block a user