run rebar in distributed network mode (with -sname rebar)
i.vysniauskas at gmail.com
Sat Nov 26 17:11:35 EST 2011
On 2011.11.26 21:55, Roman Shestakov wrote:
> I am wandering if it is possible to add a small change to rebar
> distro, to start rebar node in distribution mode (with -sname flag).
> My problem is that my eunit tests depend on ability to run
> net_adm:ping and so on..
You can start rebar with ERL_FLAGS:
ERL_FLAGS="-sname foobar" ./rebar eunit
Alternatively, you can do always do net_kernel:start([foobar,
shortnames]) in your test setup.
For further reference:
erl -man erl
erl -man net_kernel
More information about the rebar