aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-11-17 20:14:47 -0600
committerTristan Sloughter <[email protected]>2014-11-17 21:05:25 -0600
commit1a47eb9b920b38bf4607c4691d873774b74cdcd9 (patch)
treec4df50cffa816ee26ab1e6f84b781d58d40b4470 /test
parent3f93086c57664015b921221647c0f2b56519fd7c (diff)
downloadrelx-1a47eb9b920b38bf4607c4691d873774b74cdcd9.tar.gz
relx-1a47eb9b920b38bf4607c4691d873774b74cdcd9.tar.bz2
relx-1a47eb9b920b38bf4607c4691d873774b74cdcd9.zip
add back _rel to app discovery, fix relup tests to notice
Diffstat (limited to 'test')
-rw-r--r--test/rlx_release_SUITE.erl25
1 files changed, 16 insertions, 9 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl
index 112afc8..6ae4f24 100644
--- a/test/rlx_release_SUITE.erl
+++ b/test/rlx_release_SUITE.erl
@@ -737,9 +737,16 @@ make_relup_release(Config) ->
OutputDir = filename:join([proplists:get_value(data_dir, Config),
create_random_name("relx-output")]),
{ok, _} = relx:do(foo, "0.0.1", [], [LibDir1], 3,
- OutputDir, ConfigFile),
+ OutputDir, ConfigFile),
+
{ok, _} = relx:do(foo, "0.0.2", [], [LibDir1], 3,
- OutputDir, ConfigFile),
+ OutputDir, ConfigFile),
+
+ %% Goal apps are removed to simulate a users dev environment where the apps
+ %% being used in an appup/relup are likely only under _rel/<release>/lib/
+ ec_file:remove(filename:join(LibDir1, "goal_app_1-0.0.1"), [recursive]),
+ ec_file:remove(filename:join(LibDir1, "goal_app_1-0.0.2"), [recursive]),
+
{ok, State} = relx:do([{relname, foo},
{relvsn, "0.0.3"},
{goals, []},
@@ -821,13 +828,13 @@ make_relup_release2(Config) ->
{ok, _} = relx:do(foo, "0.0.2", [], [LibDir1], 3,
OutputDir, ConfigFile),
{ok, State} = relx:do([{relname, foo},
- {relvsn, "0.0.3"},
- {upfrom, "0.0.1"},
- {goals, []},
- {lib_dirs, [LibDir1]},
- {log_level, 3},
- {output_dir, OutputDir},
- {config, ConfigFile}], ["release", "relup"]),
+ {relvsn, "0.0.3"},
+ {upfrom, "0.0.1"},
+ {goals, []},
+ {lib_dirs, [LibDir1]},
+ {log_level, 3},
+ {output_dir, OutputDir},
+ {config, ConfigFile}], ["release", "relup"]),
%% we should have one 'resolved' release and three discovered realized_releases.
?assertMatch([{foo, "0.0.1"},