aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_release_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rlx_release_SUITE.erl')
-rw-r--r--test/rlx_release_SUITE.erl64
1 files changed, 5 insertions, 59 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl
index 766eb40..c4c782b 100644
--- a/test/rlx_release_SUITE.erl
+++ b/test/rlx_release_SUITE.erl
@@ -497,18 +497,17 @@ overlay_release(Config) ->
VarsFile1 = filename:join([LibDir1, "vars1.config"]),
rlx_test_utils:write_config(VarsFile1, [{yahoo, "yahoo"},
- {yahoo2, [{foo, "bar"}]},
- {yahoo3, [{bar, "{{yahoo}}/{{yahoo2.foo}}"}]},
- {foo_dir, "foodir"}]),
+ {yahoo2, [{foo, "bar"}]},
+ {foo_dir, "foodir"}]),
VarsFile2 = filename:join([LibDir1, "vars2.config"]),
rlx_test_utils:write_config(VarsFile2, [{google, "yahoo"},
- {yahoo2, [{foo, "foo"}]},
- OverlayVars3]),
+ {yahoo2, "foo"},
+ OverlayVars3]),
VarsFile3 = filename:join([LibDir1, "vars3.config"]),
rlx_test_utils:write_config(VarsFile3, [{google, "yahoo"},
- {yahoo4, [{foo, "{{yahoo}}/{{yahoo2.foo}}4"}]}]),
+ {yahoo4, "{{yahoo}}/{{yahoo2}}4"}]),
ok = rlx_util:mkdir_p(TestDirFull),
ok = file:write_file(TestFileFull, rlx_test_utils:test_template_contents()),
@@ -557,59 +556,6 @@ overlay_release(Config) ->
proplists:get_value(release_version, TemplateData)),
?assertEqual(foo,
proplists:get_value(release_name, TemplateData)),
- ?assertEqual([kernel,stdlib,lib_dep_1,non_goal_2,non_goal_1,
- goal_app_1,goal_app_2],
- proplists:get_value(release_applications, TemplateData)),
- ?assert(proplists:is_defined(std_version, TemplateData)),
- ?assert(proplists:is_defined(kernel_version, TemplateData)),
- ?assertEqual("0.0.1",
- proplists:get_value(non_goal_1_version, TemplateData)),
- ?assertEqual("0.0.1",
- proplists:get_value(non_goal_2_version, TemplateData)),
- ?assertEqual("0.0.1",
- proplists:get_value(goal_app_1_version, TemplateData)),
- ?assertEqual("0.0.1",
- proplists:get_value(goal_app_2_version, TemplateData)),
- ?assertEqual("0.0.1",
- proplists:get_value(lib_dep_1, TemplateData)),
- ?assert(proplists:is_defined(lib_dep_1_dir, TemplateData)),
- ?assertEqual([stdlib,kernel],
- proplists:get_value(lib_dep_1_active, TemplateData)),
- ?assertEqual([],
- proplists:get_value(lib_dep_1_library, TemplateData)),
- ?assertEqual("false",
- proplists:get_value(lib_dep_1_link, TemplateData)),
- ?assertEqual("(3:debug)",
- proplists:get_value(log, TemplateData)),
- ?assertEqual(filename:join(OutputDir, "foo"),
- proplists:get_value(output_dir, TemplateData)),
- ?assertEqual(filename:join(OutputDir, "foo"),
- proplists:get_value(target_dir, TemplateData)),
- ?assertEqual([],
- proplists:get_value(overridden, TemplateData)),
- ?assertEqual([""],
- proplists:get_value(goals, TemplateData)),
- ?assert(proplists:is_defined(lib_dirs, TemplateData)),
- ?assert(proplists:is_defined(config_file, TemplateData)),
- ?assertEqual([""],
- proplists:get_value(goals, TemplateData)),
- ?assertEqual([],
- proplists:get_value(sys_config, TemplateData)),
- ?assert(proplists:is_defined(root_dir, TemplateData)),
- ?assertEqual(foo,
- proplists:get_value(default_release_name, TemplateData)),
- ?assertEqual("0.0.1",
- proplists:get_value(default_release_version, TemplateData)),
- ?assertEqual("foo-0.0.1",
- proplists:get_value(default_release, TemplateData)),
- ?assertEqual("yahoo",
- proplists:get_value(yahoo, TemplateData)),
- ?assertEqual("foo",
- proplists:get_value(yahoo2_foo, TemplateData)),
- ?assertEqual("foodir",
- proplists:get_value(foo_dir, TemplateData)),
- ?assertEqual("yahoo/foo",
- proplists:get_value(yahoo3, TemplateData)),
?assertEqual("yahoo/foo4",
proplists:get_value(yahoo4, TemplateData)),
?assertEqual("yahoo",