summaryrefslogtreecommitdiff
path: root/inttest/proto_protobuffs
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2015-10-25 16:14:28 +0000
committerLuis Rascão <luis.rascao@gmail.com>2016-01-15 15:03:33 +0000
commit0bf08e4e34469144ae6f3297aae4a38b3bb2bd3c (patch)
tree13c1467bb7f754c25afec85fbb25775e0bc4e2bf /inttest/proto_protobuffs
parent6f07a636d8f309caef7c68e576396ce3328075ea (diff)
downloadrebar-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/proto_protobuffs')
-rw-r--r--inttest/proto_protobuffs/proto_protobuffs_rt.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/inttest/proto_protobuffs/proto_protobuffs_rt.erl b/inttest/proto_protobuffs/proto_protobuffs_rt.erl
index 1bb7b5e..ee4c294 100644
--- a/inttest/proto_protobuffs/proto_protobuffs_rt.erl
+++ b/inttest/proto_protobuffs/proto_protobuffs_rt.erl
@@ -42,15 +42,18 @@
"foo_sup.beam",
"test_pb.beam"]).
+setup([Target]) ->
+ retest_utils:load_module(filename:join(Target, "inttest_utils.erl")),
+ ok.
+
files() ->
[
- {copy, "../../rebar", "rebar"},
{copy, "rebar.config", "rebar.config"},
{copy, "include", "include"},
{copy, "src", "src"},
{copy, "mock", "deps"},
{create, "ebin/foo.app", app(foo, ?MODULES)}
- ].
+ ] ++ inttest_utils:rebar_setup().
run(_Dir) ->
?assertMatch({ok, _}, retest_sh:run("./rebar clean", [])),