From 262f0ba0db4c3c33609668d08acfb888af29b04e Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 13 Jul 2020 20:56:25 +0200 Subject: [PATCH] adding test for bug #250 --- tests-ng/profile-dyninclude.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests-ng/profile-dyninclude.sh b/tests-ng/profile-dyninclude.sh index b21022e..4cb09b1 100755 --- a/tests-ng/profile-dyninclude.sh +++ b/tests-ng/profile-dyninclude.sh @@ -90,6 +90,9 @@ dotfiles: f_def: dst: ${tmpd}/def src: def + f_ghi: + dst: '${tmpd}/{{@@ ghi @@}}' + src: ghi variables: mainvar: 'bad0' subvar: 'bad1' @@ -100,8 +103,10 @@ profiles: subprofile: dotfiles: - f_abc + - f_ghi dynvariables: subdyn: 'echo subdyncontent' + ghi: 'echo ghi' variables: subvar: 'subcontent' subignore: @@ -118,6 +123,7 @@ echo "{{@@ subdyn @@}}" >> ${tmps}/dotfiles/abc echo "{{@@ subvar @@}}" >> ${tmps}/dotfiles/abc echo "end" >> ${tmps}/dotfiles/abc #cat ${tmps}/dotfiles/abc +echo "ghi content" > ${tmps}/dotfiles/ghi # install 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 'subdyncontent' ${tmpd}/abc >/dev/null || (echo "dynvariables 2 not resolved" && exit 1) #cat ${tmpd}/abc +[ ! -e ${tmpd}/ghi] && exit 1 ## CLEANING rm -rf ${tmps} ${tmpd}