diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-07-03 15:58:13 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-07-03 15:58:13 +0100 |
| commit | a6cd1ef25ba833c1a77acdf525773b9c8991facd (patch) | |
| tree | 83fe8dddc6791bad49e8e4ef4fef3110254577e0 /quickcheck | |
| parent | 20c4361971594d93787de2a653cf1c9f0a8fe119 (diff) | |
| parent | 109b9628f404a00139d4fb19d47dea7f268d3151 (diff) | |
| download | rabbitmq-server-git-a6cd1ef25ba833c1a77acdf525773b9c8991facd.tar.gz | |
Merge in bug 26256
Diffstat (limited to 'quickcheck')
| -rwxr-xr-x | quickcheck | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/quickcheck b/quickcheck index 40f130919f..59da37191e 100755 --- a/quickcheck +++ b/quickcheck @@ -7,15 +7,18 @@ %% 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; R -> io:format("~p.~n", [R]), quit(1) |
