summaryrefslogtreecommitdiff
path: root/inttest/ct2/ct2_rt.erl
diff options
context:
space:
mode:
authorAlexey Romanov <alexey.v.romanov@gmail.com>2011-03-05 14:11:31 +0300
committerAlexey Romanov <alexey.v.romanov@gmail.com>2011-03-05 14:11:31 +0300
commit7c40d624dc344e534c7b576341463648091f56e8 (patch)
tree4b384980bd6fe327cdecf25c55a6dd2622cd8412 /inttest/ct2/ct2_rt.erl
parent48d23b90acb688a68354b20a1b19fa0aa0e592be (diff)
parent25c0226ab94560c5e182944c4c71b9f71ac3f08e (diff)
Merge commit 'upstream/master'
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]).