diff options
author | Tristan Sloughter <[email protected]> | 2015-03-31 17:48:17 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-03-31 17:48:17 -0500 |
commit | f03450a49a906b7d0ea060f49cc651a8fa3f3b7b (patch) | |
tree | 3f47f9dd515980b5bf7cf4974fe1467107f09111 /test/rlx_release_SUITE.erl | |
parent | a2e8eaa4fb6307e0d71ba932de6eb9378ddae937 (diff) | |
parent | d1f1c8dc134cb1d4c832cfb0171ca7b859a2a600 (diff) | |
download | relx-f03450a49a906b7d0ea060f49cc651a8fa3f3b7b.tar.gz relx-f03450a49a906b7d0ea060f49cc651a8fa3f3b7b.tar.bz2 relx-f03450a49a906b7d0ea060f49cc651a8fa3f3b7b.zip |
Merge pull request #319 from lrascao/feature/support_overlay_inclusion
support overlay file inclusion
Diffstat (limited to 'test/rlx_release_SUITE.erl')
-rw-r--r-- | test/rlx_release_SUITE.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl index eeab491..766eb40 100644 --- a/test/rlx_release_SUITE.erl +++ b/test/rlx_release_SUITE.erl @@ -471,6 +471,7 @@ overlay_release(Config) -> ConfigFile = filename:join([LibDir1, "relx.config"]), OverlayVars1 = filename:join([LibDir1, "vars1.config"]), OverlayVars2 = filename:join([LibDir1, "vars2.config"]), + OverlayVars3 = filename:join([LibDir1, "vars3.config"]), Template = filename:join([LibDir1, "test_template"]), TestDir = "first_test_dir", TestFile = "test_file", @@ -502,7 +503,12 @@ overlay_release(Config) -> VarsFile2 = filename:join([LibDir1, "vars2.config"]), rlx_test_utils:write_config(VarsFile2, [{google, "yahoo"}, - {yahoo2, [{foo, "foo"}]}]), + {yahoo2, [{foo, "foo"}]}, + OverlayVars3]), + + VarsFile3 = filename:join([LibDir1, "vars3.config"]), + rlx_test_utils:write_config(VarsFile3, [{google, "yahoo"}, + {yahoo4, [{foo, "{{yahoo}}/{{yahoo2.foo}}4"}]}]), ok = rlx_util:mkdir_p(TestDirFull), ok = file:write_file(TestFileFull, rlx_test_utils:test_template_contents()), @@ -604,6 +610,8 @@ overlay_release(Config) -> proplists:get_value(foo_dir, TemplateData)), ?assertEqual("yahoo/foo", proplists:get_value(yahoo3, TemplateData)), + ?assertEqual("yahoo/foo4", + proplists:get_value(yahoo4, TemplateData)), ?assertEqual("yahoo", proplists:get_value(google, TemplateData)). |