diff options
author | Tristan Sloughter <t@crashfast.com> | 2018-11-23 16:28:44 -0700 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2018-11-23 17:29:34 -0700 |
commit | a90f84a7a6823e9576ae22b8c4c573858513757f (patch) | |
tree | c0082e1010ba5a695c72170578a00da10c21a82c /test | |
parent | 86922f0636a1cfb73b845a152ba4021b59c92901 (diff) |
fix to include beams built from src files in subdirs in modules list
Diffstat (limited to 'test')
-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), |