2011-01-26 02:00:53 +00:00
|
|
|
-module(ct2_rt).
|
|
|
|
|
|
|
|
-compile(export_all).
|
|
|
|
|
|
|
|
|
|
|
|
files() ->
|
|
|
|
[{create, "ebin/foo.app", app(foo)},
|
|
|
|
{copy, "../../rebar", "rebar"},
|
2012-09-03 09:39:51 +00:00
|
|
|
{copy, "foo.test.spec", "foo.test.spec"},
|
2011-01-26 02:00:53 +00:00
|
|
|
{copy, "foo_SUITE.erl", "test/foo_SUITE.erl"}].
|
|
|
|
|
|
|
|
run(_Dir) ->
|
2012-09-03 09:40:18 +00:00
|
|
|
{ok, _} = retest:sh("./rebar compile ct -vvv"),
|
2011-01-26 02:00:53 +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]).
|