summaryrefslogtreecommitdiff
path: root/test/rebar_compile_SUITE.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-11-23 19:51:48 -0500
committerGitHub <noreply@github.com>2018-11-23 19:51:48 -0500
commit515283ab1cc93f0cf84ef5360eb684d7511d2b24 (patch)
treec0082e1010ba5a695c72170578a00da10c21a82c /test/rebar_compile_SUITE.erl
parent86922f0636a1cfb73b845a152ba4021b59c92901 (diff)
parenta90f84a7a6823e9576ae22b8c4c573858513757f (diff)
Merge pull request #1953 from tsloughter/subdirs-modules
fix to include beams built from src files in subdirs in modules list
Diffstat (limited to 'test/rebar_compile_SUITE.erl')
-rw-r--r--test/rebar_compile_SUITE.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl
index 9cbe8a2..a300690 100644
--- a/test/rebar_compile_SUITE.erl
+++ b/test/rebar_compile_SUITE.erl
@@ -2157,7 +2157,13 @@ recursive(Config) ->
EbinDir = filename:join([AppDir, "_build", "default", "lib", Name, "ebin"]),
{ok, Files} = rebar_utils:list_dir(EbinDir),
- ?assert(lists:member("rec.beam",Files)).
+ ?assert(lists:member("rec.beam",Files)),
+
+ %% check that rec is in modules list of .app file
+ AppFile = filename:join(EbinDir, Name++".app"),
+ {ok, [{application, _, List}]} = file:consult(AppFile),
+ {modules, Modules} = lists:keyfind(modules, 1, List),
+ ?assert(lists:member(rec, Modules)).
no_recursive(Config) ->
AppDir = ?config(apps, Config),