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

26 行
616 B

  1. -module(ct2_rt).
  2. -compile(export_all).
  3. files() ->
  4. [{create, "ebin/foo.app", app(foo)},
  5. {copy, "../../rebar", "rebar"},
  6. {copy, "foo.test.spec", "test/foo.test.spec"},
  7. {copy, "foo_SUITE.erl", "test/foo_SUITE.erl"}].
  8. run(_Dir) ->
  9. {ok, _} = retest:sh("./rebar compile ct -v"),
  10. ok.
  11. %%
  12. %% Generate the contents of a simple .app file
  13. %%
  14. app(Name) ->
  15. App = {application, Name,
  16. [{description, atom_to_list(Name)},
  17. {vsn, "1"},
  18. {modules, []},
  19. {registered, []},
  20. {applications, [kernel, stdlib]}]},
  21. io_lib:format("~p.\n", [App]).