aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_release_SUITE.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2013-05-09 17:13:06 -0700
committerEric <[email protected]>2013-05-10 11:09:49 -0700
commitc5f0a8c9175b2d152c69f72da15e7ceff411f86b (patch)
tree1ae9a327feeb420983f9a85fdb6c800900369480 /test/rlx_release_SUITE.erl
parentefbdfbe117939cd50d0252a210b9b7634de42bb4 (diff)
downloadrelx-c5f0a8c9175b2d152c69f72da15e7ceff411f86b.tar.gz
relx-c5f0a8c9175b2d152c69f72da15e7ceff411f86b.tar.bz2
relx-c5f0a8c9175b2d152c69f72da15e7ceff411f86b.zip
internal rename completion of all relcool to relx calls
Diffstat (limited to 'test/rlx_release_SUITE.erl')
-rw-r--r--test/rlx_release_SUITE.erl194
1 files changed, 97 insertions, 97 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl
index 90d99c9..ea4b20d 100644
--- a/test/rlx_release_SUITE.erl
+++ b/test/rlx_release_SUITE.erl
@@ -17,7 +17,7 @@
%%%-------------------------------------------------------------------
%%% @author Eric Merrit <[email protected]>
%%% @copyright (C) 2012, Eric Merrit
--module(rclt_release_SUITE).
+-module(rlx_release_SUITE).
-export([suite/0,
init_per_suite/1,
@@ -55,8 +55,8 @@ end_per_suite(_Config) ->
init_per_testcase(_, Config) ->
DataDir = proplists:get_value(data_dir, Config),
LibDir1 = filename:join([DataDir, create_random_name("lib_dir1_")]),
- ok = rcl_util:mkdir_p(LibDir1),
- State = rcl_state:new([{lib_dirs, [LibDir1]}], release),
+ ok = rlx_util:mkdir_p(LibDir1),
+ State = rlx_state:new([{lib_dirs, [LibDir1]}], release),
[{lib1, LibDir1},
{state, State} | Config].
@@ -84,17 +84,17 @@ make_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [stdlib,kernel], [lib_dep_1]),
create_app(LibDir1, "non_goal_2", "0.0.1", [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[goal_app_1,
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ {ok, State} = relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, ConfigFile),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -119,15 +119,15 @@ make_invalid_config_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [stdlib,kernel], [lib_dep_1]),
create_app(LibDir1, "non_goal_2", "0.0.1", [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
ok = ec_file:write(ConfigFile,
"{release, {foo, \"0.0.1\"},
[goal_app_1,
goal_app_2,]}"),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- {error, {rcl_prv_config,
- {consult, _, _}}} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ {error, {rlx_prv_config,
+ {consult, _, _}}} = relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, ConfigFile).
make_scriptless_release(Config) ->
@@ -146,22 +146,22 @@ make_scriptless_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [stdlib,kernel], [lib_dep_1]),
create_app(LibDir1, "non_goal_2", "0.0.1", [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{generate_start_script, false},
{release, {foo, "0.0.1"},
[goal_app_1,
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ {ok, State} = relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, ConfigFile),
?assert(not ec_file:exists(filename:join([OutputDir, "bin", "foo"]))),
?assert(not ec_file:exists(filename:join([OutputDir, "bin", "foo-0.0.1"]))),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -195,20 +195,20 @@ make_overridden_release(Config) ->
create_app(OverrideDir1, OverrideApp, OverrideVsn, [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[goal_app_1,
erlang:list_to_atom(OverrideApp),
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
+ create_random_name("relx-output")]),
{ok, Cwd} = file:get_cwd(),
- {ok, State} = relcool:do(Cwd, undefined, undefined, [], [LibDir1], 2,
+ {ok, State} = relx:do(Cwd, undefined, undefined, [], [LibDir1], 2,
OutputDir, [{OverrideAppName, OverrideAppDir}],
ConfigFile),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -244,20 +244,20 @@ make_skip_app_release(Config) ->
create_empty_app(SkipAppDir1, SkipAppApp, SkipAppVsn, [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[goal_app_1,
goal_app_2]},
{skip_apps, [erlang:list_to_atom(SkipAppApp)]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
+ create_random_name("relx-output")]),
{ok, Cwd} = file:get_cwd(),
- {ok, State} = relcool:do(Cwd, undefined, undefined, [], [LibDir1], 2,
+ {ok, State} = relx:do(Cwd, undefined, undefined, [], [LibDir1], 2,
OutputDir, [],
ConfigFile),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -285,20 +285,20 @@ make_implicit_config_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [stdlib,kernel], [lib_dep_1]),
create_app(LibDir1, "non_goal_2", "0.0.1", [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[goal_app_1,
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
+ create_random_name("relx-output")]),
ok = file:set_cwd(FooRoot),
{ok, FooRoot} = file:get_cwd(),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ {ok, State} = relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, undefined),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
?assert(ec_file:exists(OutputDir)),
- AppSpecs = rcl_release:applications(Release),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -332,26 +332,26 @@ make_rerun_overridden_release(Config) ->
create_app(OverrideDir1, OverrideApp, OverrideVsn, [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[goal_app_1,
erlang:list_to_atom(OverrideApp),
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
+ create_random_name("relx-output")]),
{ok, Cwd} = file:get_cwd(),
- {ok, _} = relcool:do(Cwd, undefined, undefined, [], [LibDir1], 2,
+ {ok, _} = relx:do(Cwd, undefined, undefined, [], [LibDir1], 2,
OutputDir, [{OverrideAppName, OverrideAppDir}],
ConfigFile),
%% Now we run it again to see if it fails.
- {ok, State} = relcool:do(Cwd,undefined, undefined, [], [LibDir1], 2,
+ {ok, State} = relx:do(Cwd,undefined, undefined, [], [LibDir1], 2,
OutputDir, [{OverrideAppName, OverrideAppDir}],
ConfigFile),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -380,7 +380,7 @@ overlay_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [stdlib,kernel], [lib_dep_1]),
create_app(LibDir1, "non_goal_2", "0.0.1", [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
OverlayVars = filename:join([LibDir1, "vars.config"]),
Template = filename:join([LibDir1, "test_template"]),
write_config(ConfigFile,
@@ -408,13 +408,13 @@ overlay_release(Config) ->
ok = file:write_file_info(TemplateFile, FileInfo#file_info{mode=8#00777}),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
+ create_random_name("relx-output")]),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ {ok, State} = relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, ConfigFile),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -514,14 +514,14 @@ make_goalless_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [stdlib,kernel], [lib_dep_1]),
create_app(LibDir1, "non_goal_2", "0.0.1", [stdlib,kernel], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- ?assertMatch({error,{rcl_prv_release,no_goals_specified}},
- relcool:do(undefined, undefined, [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ ?assertMatch({error,{rlx_prv_release,no_goals_specified}},
+ relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, ConfigFile)).
make_depfree_release(Config) ->
@@ -540,16 +540,16 @@ make_depfree_release(Config) ->
create_app(LibDir1, "non_goal_1", "0.0.1", [kernel,stdlib], []),
create_app(LibDir1, "non_goal_2", "0.0.1", [kernel,stdlib], []),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[goal_app_1]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ {ok, State} = relx:do(undefined, undefined, [], [LibDir1], 2,
OutputDir, ConfigFile),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)).
@@ -576,7 +576,7 @@ make_relup_release(Config) ->
write_appup_file(GA1, "0.0.2"),
write_appup_file(GA2, "0.0.2"),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[sasl,
@@ -591,12 +591,12 @@ make_relup_release(Config) ->
{goal_app_1, "0.0.3"},
{goal_app_2, "0.0.3"}]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- {ok, _} = relcool:do(foo, "0.0.1", [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ {ok, _} = relx:do(foo, "0.0.1", [], [LibDir1], 2,
OutputDir, ConfigFile),
- {ok, _} = relcool:do(foo, "0.0.2", [], [LibDir1], 2,
+ {ok, _} = relx:do(foo, "0.0.2", [], [LibDir1], 2,
OutputDir, ConfigFile),
- {ok, State} = relcool:do([{relname, foo},
+ {ok, State} = relx:do([{relname, foo},
{relvsn, "0.0.3"},
{goals, []},
{lib_dirs, [LibDir1]},
@@ -608,24 +608,24 @@ make_relup_release(Config) ->
?assertMatch([{foo, "0.0.1"},
{foo, "0.0.2"},
{foo, "0.0.3"}],
- lists:sort(ec_dictionary:keys(rcl_state:realized_releases(State)))),
- Release = ec_dictionary:get({foo, "0.0.3"}, rcl_state:realized_releases(State)),
- ?assert(rcl_release:realized(Release)),
- ?assert(not rcl_release:realized(ec_dictionary:get({foo, "0.0.2"},
- rcl_state:realized_releases(State)))),
- ?assert(not rcl_release:realized(ec_dictionary:get({foo, "0.0.1"},
- rcl_state:realized_releases(State)))),
+ lists:sort(ec_dictionary:keys(rlx_state:realized_releases(State)))),
+ Release = ec_dictionary:get({foo, "0.0.3"}, rlx_state:realized_releases(State)),
+ ?assert(rlx_release:realized(Release)),
+ ?assert(not rlx_release:realized(ec_dictionary:get({foo, "0.0.2"},
+ rlx_state:realized_releases(State)))),
+ ?assert(not rlx_release:realized(ec_dictionary:get({foo, "0.0.1"},
+ rlx_state:realized_releases(State)))),
?assertMatch({ok, [{"0.0.3",
[{"0.0.2",[],[point_of_no_return]}],
[{"0.0.2",[],[point_of_no_return]}]}]},
- file:consult(filename:join(filename:dirname(rcl_release:relfile(Release)),
- filename:basename(rcl_release:relfile(Release), ".rel") ++
+ file:consult(filename:join(filename:dirname(rlx_release:relfile(Release)),
+ filename:basename(rlx_release:relfile(Release), ".rel") ++
".relup"))),
- ?assertMatch(foo, rcl_release:name(Release)),
- ?assertMatch("0.0.3", rcl_release:vsn(Release)),
- AppSpecs = rcl_release:applications(Release),
+ ?assertMatch(foo, rlx_release:name(Release)),
+ ?assertMatch("0.0.3", rlx_release:vsn(Release)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -658,7 +658,7 @@ make_relup_release2(Config) ->
write_appup_file(GA1, "0.0.1"),
write_appup_file(GA2, "0.0.1"),
- ConfigFile = filename:join([LibDir1, "relcool.config"]),
+ ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[sasl,
@@ -673,12 +673,12 @@ make_relup_release2(Config) ->
{goal_app_1, "0.0.3"},
{goal_app_2, "0.0.3"}]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
- create_random_name("relcool-output")]),
- {ok, _} = relcool:do(foo, "0.0.1", [], [LibDir1], 2,
+ create_random_name("relx-output")]),
+ {ok, _} = relx:do(foo, "0.0.1", [], [LibDir1], 2,
OutputDir, ConfigFile),
- {ok, _} = relcool:do(foo, "0.0.2", [], [LibDir1], 2,
+ {ok, _} = relx:do(foo, "0.0.2", [], [LibDir1], 2,
OutputDir, ConfigFile),
- {ok, State} = relcool:do([{relname, foo},
+ {ok, State} = relx:do([{relname, foo},
{relvsn, "0.0.3"},
{upfrom, "0.0.1"},
{goals, []},
@@ -691,24 +691,24 @@ make_relup_release2(Config) ->
?assertMatch([{foo, "0.0.1"},
{foo, "0.0.2"},
{foo, "0.0.3"}],
- lists:sort(ec_dictionary:keys(rcl_state:realized_releases(State)))),
- Release = ec_dictionary:get({foo, "0.0.3"}, rcl_state:realized_releases(State)),
- ?assert(rcl_release:realized(Release)),
- ?assert(not rcl_release:realized(ec_dictionary:get({foo, "0.0.2"},
- rcl_state:realized_releases(State)))),
- ?assert(not rcl_release:realized(ec_dictionary:get({foo, "0.0.1"},
- rcl_state:realized_releases(State)))),
+ lists:sort(ec_dictionary:keys(rlx_state:realized_releases(State)))),
+ Release = ec_dictionary:get({foo, "0.0.3"}, rlx_state:realized_releases(State)),
+ ?assert(rlx_release:realized(Release)),
+ ?assert(not rlx_release:realized(ec_dictionary:get({foo, "0.0.2"},
+ rlx_state:realized_releases(State)))),
+ ?assert(not rlx_release:realized(ec_dictionary:get({foo, "0.0.1"},
+ rlx_state:realized_releases(State)))),
?assertMatch({ok, [{"0.0.3",
[{"0.0.1",[],[point_of_no_return]}],
[{"0.0.1",[],[point_of_no_return]}]}]},
- file:consult(filename:join(filename:dirname(rcl_release:relfile(Release)),
- filename:basename(rcl_release:relfile(Release), ".rel") ++
+ file:consult(filename:join(filename:dirname(rlx_release:relfile(Release)),
+ filename:basename(rlx_release:relfile(Release), ".rel") ++
".relup"))),
- ?assertMatch(foo, rcl_release:name(Release)),
- ?assertMatch("0.0.3", rcl_release:vsn(Release)),
- AppSpecs = rcl_release:applications(Release),
+ ?assertMatch(foo, rlx_release:name(Release)),
+ ?assertMatch("0.0.3", rlx_release:vsn(Release)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({non_goal_1, "0.0.1"}, AppSpecs)),
@@ -721,22 +721,22 @@ make_relup_release2(Config) ->
make_one_app_top_level_release(Config) ->
LibDir1 = proplists:get_value(lib1, Config),
{ok, AppInfo} = create_app(LibDir1, "goal_app_1", "0.0.1", [stdlib,kernel], []),
- AppDir = rcl_app_info:dir(AppInfo),
- ConfigFile = filename:join([AppDir, "relcool.config"]),
+ AppDir = rlx_app_info:dir(AppInfo),
+ ConfigFile = filename:join([AppDir, "relx.config"]),
write_config(ConfigFile,
[{release, {foo, "0.0.1"},
[{goal_app_1, "0.0.1"}]}]),
OutputDir = filename:join([AppDir,
- create_random_name("relcool-output")]),
+ create_random_name("relx-output")]),
{ok, Cwd} = file:get_cwd(),
ok = file:set_cwd(AppDir),
- {ok, State} = relcool:do(undefined, undefined, [], [], 2,
+ {ok, State} = relx:do(undefined, undefined, [], [], 2,
OutputDir, ConfigFile),
ok = file:set_cwd(Cwd),
- [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:realized_releases(State)),
- AppSpecs = rcl_release:applications(Release),
+ [{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rlx_state:realized_releases(State)),
+ AppSpecs = rlx_release:applications(Release),
?assert(lists:keymember(stdlib, 1, AppSpecs)),
?assert(lists:keymember(kernel, 1, AppSpecs)),
?assert(lists:member({goal_app_1, "0.0.1"}, AppSpecs)).
@@ -750,13 +750,13 @@ create_app(Dir, Name, Vsn, Deps, LibDeps) ->
AppDir = filename:join([Dir, Name ++ "-" ++ Vsn]),
write_app_file(AppDir, Name, Vsn, Deps, LibDeps),
write_beam_file(AppDir, Name),
- rcl_app_info:new(erlang:list_to_atom(Name), Vsn, AppDir,
+ rlx_app_info:new(erlang:list_to_atom(Name), Vsn, AppDir,
Deps, []).
create_empty_app(Dir, Name, Vsn, Deps, LibDeps) ->
AppDir = filename:join([Dir, Name ++ "-" ++ Vsn]),
write_app_file(AppDir, Name, Vsn, Deps, LibDeps),
- rcl_app_info:new(erlang:list_to_atom(Name), Vsn, AppDir,
+ rlx_app_info:new(erlang:list_to_atom(Name), Vsn, AppDir,
Deps, []).
write_beam_file(Dir, Name) ->
@@ -765,9 +765,9 @@ write_beam_file(Dir, Name) ->
ok = ec_file:write_term(Beam, testing_purposes_only).
write_appup_file(AppInfo, DownVsn) ->
- Dir = rcl_app_info:dir(AppInfo),
- Name = rcl_util:to_string(rcl_app_info:name(AppInfo)),
- Vsn = rcl_app_info:vsn_as_string(AppInfo),
+ Dir = rlx_app_info:dir(AppInfo),
+ Name = rlx_util:to_string(rlx_app_info:name(AppInfo)),
+ Vsn = rlx_app_info:vsn_as_string(AppInfo),
Filename = filename:join([Dir, "ebin", Name ++ ".appup"]),
ok = filelib:ensure_dir(Filename),
ok = ec_file:write_term(Filename, {Vsn, [{DownVsn, []}], [{DownVsn, []}]}).