mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Adding test for new release generation overlay system
--HG-- extra : rebase_source : cd143fdf55773dcfbeeda687570b226def42e4f5
This commit is contained in:
parent
55c1e44ba5
commit
fbb6fc06c6
4 changed files with 51 additions and 0 deletions
31
inttest/rgen1/reltool.config
Normal file
31
inttest/rgen1/reltool.config
Normal 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"}
|
||||||
|
]}.
|
18
inttest/rgen1/rgen1_rt.erl
Normal file
18
inttest/rgen1/rgen1_rt.erl
Normal 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.
|
1
inttest/rgen1/test.config
Normal file
1
inttest/rgen1/test.config
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{web_port, {{web_port}} }.
|
1
inttest/rgen1/vars.config
Normal file
1
inttest/rgen1/vars.config
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{web_port, 1234}.
|
Loading…
Reference in a new issue