diff options
author | Eric <[email protected]> | 2012-12-27 11:54:38 -0500 |
---|---|---|
committer | Eric <[email protected]> | 2012-12-27 11:54:38 -0500 |
commit | 901f020a4e0e5635b2d242f75ead571830395a06 (patch) | |
tree | 3c75699e234f1023cb7a31f665a9dc9e3656593a /test | |
parent | b87e030af2e3120ea4a6950c9808285897ce7be9 (diff) | |
download | relx-901f020a4e0e5635b2d242f75ead571830395a06.tar.gz relx-901f020a4e0e5635b2d242f75ead571830395a06.tar.bz2 relx-901f020a4e0e5635b2d242f75ead571830395a06.zip |
suport variables in vars files of overlays
Diffstat (limited to 'test')
-rw-r--r-- | test/rclt_release_SUITE.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/rclt_release_SUITE.erl b/test/rclt_release_SUITE.erl index f4f0ecc..890a24b 100644 --- a/test/rclt_release_SUITE.erl +++ b/test/rclt_release_SUITE.erl @@ -269,6 +269,7 @@ overlay_release(Config) -> VarsFile = filename:join([LibDir1, "vars.config"]), write_config(VarsFile, [{yahoo, "yahoo"}, {yahoo2, [{foo, "bar"}]}, + {yahoo3, [{bar, "{{yahoo}}/{{yahoo2.foo}}"}]}, {foo_dir, "foodir"}]), TemplateFile = filename:join([LibDir1, "test_template"]), @@ -358,7 +359,9 @@ overlay_release(Config) -> ?assertEqual("bar", proplists:get_value(yahoo2_foo, TemplateData)), ?assertEqual("foodir", - proplists:get_value(foo_dir, TemplateData)). + proplists:get_value(foo_dir, TemplateData)), + ?assertEqual("yahoo/bar", + proplists:get_value(yahoo3, TemplateData)). %%%=================================================================== %%% Helper Functions @@ -436,4 +439,5 @@ test_template_contents() -> "{default_release, \"{{default_release}}\"}.\n" "{yahoo, \"{{yahoo}}\"}.\n" "{yahoo2_foo, \"{{yahoo2.foo}}\"}.\n" - "{foo_dir, \"{{foo_dir}}\"}.\n". + "{foo_dir, \"{{foo_dir}}\"}.\n" + "{yahoo3, \"{{yahoo3.bar}}\"}.\n". |