[erlang-questions] [ANN] reltool_util Released
Michael Truog
mjtruog@REDACTED
Mon Apr 29 22:47:56 CEST 2013
https://github.com/okeuday/reltool_util
This is an application/module which provides functions for dynamically starting or stopping applications as a hierarchy (with application_start and application_stop). The functionality is a pretty common desire when you are testing source code before making a release (with ct or eunit). For an example, you can see https://github.com/okeuday/cpg/blob/master/test/cpg_test.erl (n.b., using the file's eunit function definition order only works when inparallel is not being used).
There also is an experimental function (script_start) for loading a whole script file in the running VM, which may be considered bad, since it doesn't use the normal process of generating a boot file and firing up an Erlang VM.
The release escript provided in the project is a way of generating a release using the same basic sequence provided by "rebar generate" on unix, but without the template functionality and the windows support. The release escript was created after having problems with some of the validation rebar does before the release generation, which was a false negative (seems to be dependencies that aren't built with rebar can anger rebar's release generation).
More information about the erlang-questions
mailing list