Adding test for new release generation overlay system

--HG--
extra : rebase_source : cd143fdf55773dcfbeeda687570b226def42e4f5
This commit is contained in:
Dave Smith 2010-06-14 18:14:23 -06:00
parent 55c1e44ba5
commit fbb6fc06c6
4 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,31 @@
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
{sys, [
{rel, "rgen1", "0.1",
[
kernel,
stdlib,
sasl,
crypto
]},
{rel, "start_clean", "",
[
kernel,
stdlib
]},
{boot_rel, "rgen1"},
{profile, embedded},
{excl_sys_filters, ["^bin/.*",
"^erts.*/bin/(dialyzer|typer)"]},
{excl_archive_filters, [".*"]},
{app, sasl, [{incl_cond, include}]}
]}.
{target_dir, "mytarget"}.
{overlay_vars, "vars.config"}.
{overlay, [
{mkdir, "data"},
{template, "test.config", "etc/test.config"}
]}.

View file

@ -0,0 +1,18 @@
-module(rgen1_rt).
-compile(export_all).
%% Exercise release generation w/ templating
files() ->
[
{copy, "reltool.config"},
{copy, "test.config"},
{copy, "vars.config"},
{copy, "../../rebar"}
].
run(_Dir) ->
{ok, _} = retest_sh:run("./rebar -v generate", []),
true = filelib:is_dir("mytarget"),
ok.

View file

@ -0,0 +1 @@
{web_port, {{web_port}} }.

View file

@ -0,0 +1 @@
{web_port, 1234}.