2010-06-22 21:41:39 +00:00
|
|
|
-module(ct1_rt).
|
|
|
|
|
|
|
|
-compile(export_all).
|
|
|
|
|
|
|
|
|
|
|
|
files() ->
|
|
|
|
[{create, "ebin/a1.app", app(a1)},
|
|
|
|
{copy, "../../rebar", "rebar"},
|
2011-09-18 12:38:31 +00:00
|
|
|
{copy, "rebar.config", "rebar.config"},
|
2014-06-27 17:26:25 +00:00
|
|
|
{copy, "app.config", "app.config"},
|
2011-09-18 12:38:31 +00:00
|
|
|
{copy, "test_SUITE.erl", "itest/test_SUITE.erl"}].
|
2010-06-22 21:41:39 +00:00
|
|
|
|
|
|
|
run(_Dir) ->
|
|
|
|
{ok, _} = retest:sh("./rebar compile ct"),
|
2014-06-27 17:26:25 +00:00
|
|
|
{ok, _} = retest:sh("./rebar compile ct -v"),
|
2010-06-22 21:41:39 +00:00
|
|
|
ok.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Generate the contents of a simple .app file
|
|
|
|
%%
|
|
|
|
app(Name) ->
|
|
|
|
App = {application, Name,
|
|
|
|
[{description, atom_to_list(Name)},
|
|
|
|
{vsn, "1"},
|
|
|
|
{modules, []},
|
|
|
|
{registered, []},
|
|
|
|
{applications, [kernel, stdlib]}]},
|
|
|
|
io_lib:format("~p.\n", [App]).
|