mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 06:54:17 +00:00
adding test for bug #250
This commit is contained in:
@@ -90,6 +90,9 @@ dotfiles:
|
|||||||
f_def:
|
f_def:
|
||||||
dst: ${tmpd}/def
|
dst: ${tmpd}/def
|
||||||
src: def
|
src: def
|
||||||
|
f_ghi:
|
||||||
|
dst: '${tmpd}/{{@@ ghi @@}}'
|
||||||
|
src: ghi
|
||||||
variables:
|
variables:
|
||||||
mainvar: 'bad0'
|
mainvar: 'bad0'
|
||||||
subvar: 'bad1'
|
subvar: 'bad1'
|
||||||
@@ -100,8 +103,10 @@ profiles:
|
|||||||
subprofile:
|
subprofile:
|
||||||
dotfiles:
|
dotfiles:
|
||||||
- f_abc
|
- f_abc
|
||||||
|
- f_ghi
|
||||||
dynvariables:
|
dynvariables:
|
||||||
subdyn: 'echo subdyncontent'
|
subdyn: 'echo subdyncontent'
|
||||||
|
ghi: 'echo ghi'
|
||||||
variables:
|
variables:
|
||||||
subvar: 'subcontent'
|
subvar: 'subcontent'
|
||||||
subignore:
|
subignore:
|
||||||
@@ -118,6 +123,7 @@ echo "{{@@ subdyn @@}}" >> ${tmps}/dotfiles/abc
|
|||||||
echo "{{@@ subvar @@}}" >> ${tmps}/dotfiles/abc
|
echo "{{@@ subvar @@}}" >> ${tmps}/dotfiles/abc
|
||||||
echo "end" >> ${tmps}/dotfiles/abc
|
echo "end" >> ${tmps}/dotfiles/abc
|
||||||
#cat ${tmps}/dotfiles/abc
|
#cat ${tmps}/dotfiles/abc
|
||||||
|
echo "ghi content" > ${tmps}/dotfiles/ghi
|
||||||
|
|
||||||
# install
|
# install
|
||||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p profile_1 --verbose
|
cd ${ddpath} | ${bin} install -f -c ${cfg} -p profile_1 --verbose
|
||||||
@@ -129,6 +135,7 @@ grep 'maindyncontent' ${tmpd}/abc >/dev/null || (echo "dynvariables 1 not resolv
|
|||||||
grep 'subcontent' ${tmpd}/abc >/dev/null || (echo "variables 2 not resolved" && exit 1)
|
grep 'subcontent' ${tmpd}/abc >/dev/null || (echo "variables 2 not resolved" && exit 1)
|
||||||
grep 'subdyncontent' ${tmpd}/abc >/dev/null || (echo "dynvariables 2 not resolved" && exit 1)
|
grep 'subdyncontent' ${tmpd}/abc >/dev/null || (echo "dynvariables 2 not resolved" && exit 1)
|
||||||
#cat ${tmpd}/abc
|
#cat ${tmpd}/abc
|
||||||
|
[ ! -e ${tmpd}/ghi] && exit 1
|
||||||
|
|
||||||
## CLEANING
|
## CLEANING
|
||||||
rm -rf ${tmps} ${tmpd}
|
rm -rf ${tmps} ${tmpd}
|
||||||
|
|||||||
Reference in New Issue
Block a user