選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

31 行
945 B

  1. -module(t_custom_config_rt).
  2. -compile(export_all).
  3. -include_lib("eunit/include/eunit.hrl").
  4. files() ->
  5. [{copy, "custom.config", "custom.config"},
  6. {create, "ebin/custom_config.app", app(custom_config, [custom_config])}].
  7. run(Dir) ->
  8. retest_log:log(debug, "Running in Dir: ~s~n", [Dir]),
  9. Ref = retest:sh("rebar -C custom.config check-deps -v", [{async, true}]),
  10. {ok, Captured} =
  11. retest:sh_expect(Ref,
  12. "DEBUG: Consult config file .*/custom.config.*",
  13. [{capture, all, list}]),
  14. retest_log:log(debug, "[CAPTURED]: ~s~n", [Captured]),
  15. ok.
  16. %%
  17. %% Generate the contents of a simple .app file
  18. %%
  19. app(Name, Modules) ->
  20. App = {application, Name,
  21. [{description, atom_to_list(Name)},
  22. {vsn, "1"},
  23. {modules, Modules},
  24. {registered, []},
  25. {applications, [kernel, stdlib]}]},
  26. io_lib:format("~p.\n", [App]).