You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
663 B

  1. -module(bug_5_rt).
  2. -compile(export_all).
  3. files() ->
  4. [{create, "ebin/a1.app", app(a1)},
  5. {create, "deps/d1/src/d1.app.src", app(d1)},
  6. {create, "rebar.config",
  7. <<"{deps, [{d1, \"1\", {hg, \"http://example.com\", \"tip\"}}]}.\n">>},
  8. {copy, "../rebar", "rebar"}].
  9. run(_Dir) ->
  10. {ok, _} = retest:sh("./rebar compile"),
  11. ok.
  12. %%
  13. %% Generate the contents of a simple .app file
  14. %%
  15. app(Name) ->
  16. App = {application, Name,
  17. [{description, atom_to_list(Name)},
  18. {vsn, "1"},
  19. {modules, []},
  20. {registered, []},
  21. {applications, [kernel, stdlib]}]},
  22. io_lib:format("~p.\n", [App]).