mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Update retest w/ better handling of multi-statement shell commands; update tdeps1_rt to use it
--HG-- extra : rebase_source : 010907d47b360288825cb9c841d62450700be225
This commit is contained in:
parent
89f959563e
commit
166adf4029
2 changed files with 6 additions and 5 deletions
BIN
inttest/retest
BIN
inttest/retest
Binary file not shown.
|
@ -14,7 +14,7 @@ files() ->
|
||||||
{copy, "../../rebar", "rebar"},
|
{copy, "../../rebar", "rebar"},
|
||||||
|
|
||||||
%% B application
|
%% B application
|
||||||
{create, "repo/b/ebin/b.app", app(b)},
|
{create, "repo/b/src/b.app.src", app(b)},
|
||||||
{copy, "b.rebar.config", "repo/b/rebar.config"},
|
{copy, "b.rebar.config", "repo/b/rebar.config"},
|
||||||
{copy, "b.hrl", "repo/b/include/b.hrl"},
|
{copy, "b.hrl", "repo/b/include/b.hrl"},
|
||||||
|
|
||||||
|
@ -26,11 +26,12 @@ files() ->
|
||||||
run(_Dir) ->
|
run(_Dir) ->
|
||||||
%% Initialize the b/c apps as mercurial repos so that dependencies pull
|
%% Initialize the b/c apps as mercurial repos so that dependencies pull
|
||||||
%% properly
|
%% properly
|
||||||
HgCmd = "hg init && hg add && hg commit -m 'Initial commit'",
|
HgCmd = "/bin/sh -c \"hg init && hg add && hg commit -m 'Initial commit'\"",
|
||||||
retest_log:log(debug, "~s\n", [os:cmd("(cd repo/b && " ++ HgCmd ++ ")")]),
|
{ok, _} = retest_sh:run(HgCmd, [{dir, "repo/b"}]),
|
||||||
retest_log:log(debug, "~s\n", [os:cmd("(cd repo/c && " ++ HgCmd ++ ")")]),
|
{ok, _} = retest_sh:run(HgCmd, [{dir, "repo/c"}]),
|
||||||
|
|
||||||
retest_log:log(debug, "~s\n", [os:cmd("./rebar get-deps compile")]),
|
|
||||||
|
{ok, _} = retest_sh:run("./rebar -v get-deps compile", []),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue