|
@ -5,17 +5,24 @@ |
|
|
-include_lib("eunit/include/eunit.hrl"). |
|
|
-include_lib("eunit/include/eunit.hrl"). |
|
|
|
|
|
|
|
|
files() -> |
|
|
files() -> |
|
|
[{copy, "custom.config", "custom.config"}, |
|
|
|
|
|
|
|
|
[{copy, "../../rebar", "rebar"}, |
|
|
|
|
|
{copy, "custom.config", "custom.config"}, |
|
|
{create, "ebin/custom_config.app", app(custom_config, [custom_config])}]. |
|
|
{create, "ebin/custom_config.app", app(custom_config, [custom_config])}]. |
|
|
|
|
|
|
|
|
run(Dir) -> |
|
|
run(Dir) -> |
|
|
retest_log:log(debug, "Running in Dir: ~s~n", [Dir]), |
|
|
retest_log:log(debug, "Running in Dir: ~s~n", [Dir]), |
|
|
Ref = retest:sh("rebar -C custom.config check-deps -v", [{async, true}]), |
|
|
|
|
|
|
|
|
Ref = retest:sh("./rebar -C custom.config check-deps -v", [{async, true}]), |
|
|
{ok, Captured} = |
|
|
{ok, Captured} = |
|
|
retest:sh_expect(Ref, |
|
|
retest:sh_expect(Ref, |
|
|
"DEBUG: Consult config file .*/custom.config.*", |
|
|
"DEBUG: Consult config file .*/custom.config.*", |
|
|
[{capture, all, list}]), |
|
|
[{capture, all, list}]), |
|
|
|
|
|
{ok, Missing} = |
|
|
|
|
|
retest:sh_expect(Ref, |
|
|
|
|
|
"DEBUG: Missing deps : \\[\\{dep,bad_name," |
|
|
|
|
|
"boo,\"\\.\",undefined\\}\\]", |
|
|
|
|
|
[{capture, all, list}]), |
|
|
retest_log:log(debug, "[CAPTURED]: ~s~n", [Captured]), |
|
|
retest_log:log(debug, "[CAPTURED]: ~s~n", [Captured]), |
|
|
|
|
|
retest_log:log(debug, "[Missing]: ~s~n", [Missing]), |
|
|
ok. |
|
|
ok. |
|
|
|
|
|
|
|
|
%% |
|
|
%% |
|
|