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.

30 lines
700 B

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