aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_release_SUITE.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-09-09 20:16:55 -0500
committerTristan Sloughter <[email protected]>2013-09-11 20:07:33 -0500
commitff0a11dc7b2e2ef902c97a62595b29e9bc89029a (patch)
treea96c523adba91117ee3ce4cfa557155c0cc303db /test/rlx_release_SUITE.erl
parent2f54b2d5360c52fff2c3f8fde73b29b6069174ea (diff)
downloadrelx-ff0a11dc7b2e2ef902c97a62595b29e9bc89029a.tar.gz
relx-ff0a11dc7b2e2ef902c97a62595b29e9bc89029a.tar.bz2
relx-ff0a11dc7b2e2ef902c97a62595b29e9bc89029a.zip
allow multiple actions, including new action tar
Diffstat (limited to 'test/rlx_release_SUITE.erl')
-rw-r--r--test/rlx_release_SUITE.erl14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl
index ea4b20d..ccf5a8f 100644
--- a/test/rlx_release_SUITE.erl
+++ b/test/rlx_release_SUITE.erl
@@ -56,7 +56,7 @@ init_per_testcase(_, Config) ->
DataDir = proplists:get_value(data_dir, Config),
LibDir1 = filename:join([DataDir, create_random_name("lib_dir1_")]),
ok = rlx_util:mkdir_p(LibDir1),
- State = rlx_state:new([{lib_dirs, [LibDir1]}], release),
+ State = rlx_state:new([{lib_dirs, [LibDir1]}], [release]),
[{lib1, LibDir1},
{state, State} | Config].
@@ -602,7 +602,7 @@ make_relup_release(Config) ->
{lib_dirs, [LibDir1]},
{log_level, 2},
{output_dir, OutputDir},
- {config, ConfigFile}], ["relup"]),
+ {config, ConfigFile}], ["release", "relup"]),
%% we should have one 'resolved' release and three discovered realized_releases.
?assertMatch([{foo, "0.0.1"},
@@ -619,9 +619,7 @@ make_relup_release(Config) ->
?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(rlx_release:relfile(Release)),
- filename:basename(rlx_release:relfile(Release), ".rel") ++
- ".relup"))),
+ file:consult(filename:join(filename:dirname(rlx_release:relfile(Release)), "relup"))),
?assertMatch(foo, rlx_release:name(Release)),
?assertMatch("0.0.3", rlx_release:vsn(Release)),
@@ -685,7 +683,7 @@ make_relup_release2(Config) ->
{lib_dirs, [LibDir1]},
{log_level, 2},
{output_dir, OutputDir},
- {config, ConfigFile}], ["relup"]),
+ {config, ConfigFile}], ["release", "relup"]),
%% we should have one 'resolved' release and three discovered realized_releases.
?assertMatch([{foo, "0.0.1"},
@@ -702,9 +700,7 @@ make_relup_release2(Config) ->
?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(rlx_release:relfile(Release)),
- filename:basename(rlx_release:relfile(Release), ".rel") ++
- ".relup"))),
+ file:consult(filename:join(filename:dirname(rlx_release:relfile(Release)), "relup"))),
?assertMatch(foo, rlx_release:name(Release)),
?assertMatch("0.0.3", rlx_release:vsn(Release)),