diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-11-23 19:51:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-23 19:51:48 -0500 |
commit | 515283ab1cc93f0cf84ef5360eb684d7511d2b24 (patch) | |
tree | c0082e1010ba5a695c72170578a00da10c21a82c /test/rebar_compile_SUITE.erl | |
parent | 86922f0636a1cfb73b845a152ba4021b59c92901 (diff) | |
parent | a90f84a7a6823e9576ae22b8c4c573858513757f (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.erl | 8 |
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), |