diff options
-rw-r--r-- | inttest/rgen1/reltool.config | 31 | ||||
-rw-r--r-- | inttest/rgen1/rgen1_rt.erl | 18 | ||||
-rw-r--r-- | inttest/rgen1/test.config | 1 | ||||
-rw-r--r-- | inttest/rgen1/vars.config | 1 |
4 files changed, 51 insertions, 0 deletions
diff --git a/inttest/rgen1/reltool.config b/inttest/rgen1/reltool.config new file mode 100644 index 0000000..c6e31f5 --- /dev/null +++ b/inttest/rgen1/reltool.config @@ -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"} + ]}. diff --git a/inttest/rgen1/rgen1_rt.erl b/inttest/rgen1/rgen1_rt.erl new file mode 100644 index 0000000..68b6eaf --- /dev/null +++ b/inttest/rgen1/rgen1_rt.erl @@ -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. diff --git a/inttest/rgen1/test.config b/inttest/rgen1/test.config new file mode 100644 index 0000000..2fd1385 --- /dev/null +++ b/inttest/rgen1/test.config @@ -0,0 +1 @@ +{web_port, {{web_port}} }. diff --git a/inttest/rgen1/vars.config b/inttest/rgen1/vars.config new file mode 100644 index 0000000..174c51e --- /dev/null +++ b/inttest/rgen1/vars.config @@ -0,0 +1 @@ +{web_port, 1234}. |