aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_discover_SUITE.erl
diff options
context:
space:
mode:
authorAlexander V. Nikolaev <[email protected]>2013-05-29 15:59:26 +0300
committerTristan Sloughter <[email protected]>2013-09-16 22:17:57 -0500
commit61bc82aadad1d86a0b892d49ba0217ba01d2e088 (patch)
treef4d82e234ceb7608a024d74f9f959ac5437271ae /test/rlx_discover_SUITE.erl
parent13e3e74c7bc84577904515d278b7a5272c25d2e5 (diff)
downloadrelx-61bc82aadad1d86a0b892d49ba0217ba01d2e088.tar.gz
relx-61bc82aadad1d86a0b892d49ba0217ba01d2e088.tar.bz2
relx-61bc82aadad1d86a0b892d49ba0217ba01d2e088.zip
Check presence of each beam listed in .app
This allow to build riak, because one of riak deps (node_package) have stuff in priv/ and valid node_package.app, but no one .beam files.
Diffstat (limited to 'test/rlx_discover_SUITE.erl')
-rw-r--r--test/rlx_discover_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rlx_discover_SUITE.erl b/test/rlx_discover_SUITE.erl
index d404d8c..c4455e1 100644
--- a/test/rlx_discover_SUITE.erl
+++ b/test/rlx_discover_SUITE.erl
@@ -88,7 +88,7 @@ normal_case(Config) ->
?assertMatch(Length, erlang:length(rlx_state:available_apps(State2))).
no_beam_case(Config) ->
- %% We silently ignore apps with no beams
+ %% do not ignore apps with no beam files if no modules in app file
LibDir1 = proplists:get_value(lib1, Config),
_Apps1 = [(fun({Name, Vsn}) ->
create_app(LibDir1, Name, Vsn)
@@ -111,8 +111,8 @@ no_beam_case(Config) ->
write_app_file(AppDir, BadName, BadVsn),
State0 = proplists:get_value(state, Config),
{DiscoverProvider, {ok, State1}} = rlx_provider:new(rlx_prv_discover, State0),
- EbinDir = filename:join([LibDir2, BadName, <<"ebin">>]),
- ?assertMatch({error, {_, [{no_beam_files, EbinDir}]}},
+
+ ?assertMatch({ok, _},
rlx_provider:do(DiscoverProvider, State1)).
bad_ebin_case(Config) ->