summaryrefslogtreecommitdiff
path: root/inttest/ct2/ct2_rt.erl
diff options
context:
space:
mode:
Diffstat (limited to 'inttest/ct2/ct2_rt.erl')
-rw-r--r--inttest/ct2/ct2_rt.erl26
1 files changed, 26 insertions, 0 deletions
diff --git a/inttest/ct2/ct2_rt.erl b/inttest/ct2/ct2_rt.erl
new file mode 100644
index 0000000..2b14ff9
--- /dev/null
+++ b/inttest/ct2/ct2_rt.erl
@@ -0,0 +1,26 @@
+-module(ct2_rt).
+
+-compile(export_all).
+
+
+files() ->
+ [{create, "ebin/foo.app", app(foo)},
+ {copy, "../../rebar", "rebar"},
+ {copy, "foo.test.spec", "test/foo.test.spec"},
+ {copy, "foo_SUITE.erl", "test/foo_SUITE.erl"}].
+
+run(_Dir) ->
+ {ok, _} = retest:sh("./rebar compile ct -v"),
+ 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]).