diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-08-18 12:56:41 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-08-18 12:56:41 +0100 |
| commit | 29786bd0bf41b008226f09acaa27a98b4908adf2 (patch) | |
| tree | 81cfd3acae89e09e2329785b0e77ebda979e0c62 /quickcheck | |
| parent | 67564d07b8c670ff7dc6300d26114ea51a88cb84 (diff) | |
| parent | b8a77b27a1592b2f3320812ecc5520698f81ddef (diff) | |
| download | rabbitmq-server-git-29786bd0bf41b008226f09acaa27a98b4908adf2.tar.gz | |
stable to default
Diffstat (limited to 'quickcheck')
| -rwxr-xr-x | quickcheck | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/quickcheck b/quickcheck index b5382d75b9..59da37191e 100755 --- a/quickcheck +++ b/quickcheck @@ -7,17 +7,21 @@ %% NodeStr is a local broker node name %% ModStr is the module containing quickcheck properties %% TrialsStr is the number of trials -main([NodeStr, ModStr, TrialsStr]) -> +main([NodeStr, ModStr, NumTestsStr, MaxSizeStr]) -> {ok, Hostname} = inet:gethostname(), Node = list_to_atom(NodeStr ++ "@" ++ Hostname), Mod = list_to_atom(ModStr), - Trials = erlang:list_to_integer(TrialsStr), + NumTests = erlang:list_to_integer(NumTestsStr), + MaxSize = erlang:list_to_integer(MaxSizeStr), case rpc:call(Node, code, ensure_loaded, [proper]) of {module, proper} -> case rpc:call(Node, proper, module, - [Mod] ++ [[{numtests, Trials}, {constraint_tries, 200}]]) of + [Mod] ++ [[{numtests, NumTests}, + {max_size, MaxSize}, + {constraint_tries, 200}]]) of [] -> ok; - _ -> quit(1) + R -> io:format("~p.~n", [R]), + quit(1) end; {badrpc, Reason} -> io:format("Could not contact node ~p: ~p.~n", [Node, Reason]), |
