diff options
author | Luis Rascão <luis.rascao@gmail.com> | 2015-10-25 16:14:28 +0000 |
---|---|---|
committer | Luis Rascão <luis.rascao@gmail.com> | 2016-01-15 15:03:33 +0000 |
commit | 0bf08e4e34469144ae6f3297aae4a38b3bb2bd3c (patch) | |
tree | 13c1467bb7f754c25afec85fbb25775e0bc4e2bf /inttest/app_src_script/app_src_script_rt.erl | |
parent | 6f07a636d8f309caef7c68e576396ce3328075ea (diff) | |
download | rebar-0bf08e4e34469144ae6f3297aae4a38b3bb2bd3c.tar.gz |
Add support for Windows integration testing
Use retest feature/rebar-windows-ci branch that adds Windows
tests support, test setup callback and additional touch command.
For all tests copy rebar and rebar.cmd using retest setup callback.
Port OS specific commands used in tests to Erlang
(eg. touch, rm, cp, stat..).
rebar_ct: do away with grep command line invocation (which doesn't
exist in Windows) and use instead plain Erlang parsing.
Increase timeout for rgen1 test to 4 minutes, Windows Appveyor
can take longer than the previous 2 minutes.
Diffstat (limited to 'inttest/app_src_script/app_src_script_rt.erl')
-rw-r--r-- | inttest/app_src_script/app_src_script_rt.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/inttest/app_src_script/app_src_script_rt.erl b/inttest/app_src_script/app_src_script_rt.erl index 4c00ec8..c0de128 100644 --- a/inttest/app_src_script/app_src_script_rt.erl +++ b/inttest/app_src_script/app_src_script_rt.erl @@ -30,9 +30,14 @@ -include_lib("eunit/include/eunit.hrl"). +setup([Target]) -> + retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), + ok. + files() -> - [{copy, "../../rebar", "rebar"}, - {create, "src/app_src_script.app.src.script", app_script(app_src_script)}]. + [ + {create, "src/app_src_script.app.src.script", app_script(app_src_script)} + ] ++ inttest_utils:rebar_setup(). run(Dir) -> retest_log:log(debug, "Running in Dir: ~s~n", [Dir]), |