diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-26 15:16:55 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-26 15:16:55 +0100 |
commit | 4aee9ee5339052d203ff421e3299621ca6c3b798 (patch) | |
tree | a5b60c85f71f85bdbefeb2ccce626e603b82ad9c /quickcheck | |
parent | cfc8336440df39a8d8749f5133852d0602727957 (diff) | |
download | rabbitmq-server-4aee9ee5339052d203ff421e3299621ca6c3b798.tar.gz |
Control max_size, and remove some broken premature abstraction from the Makefile.bug24929
Diffstat (limited to 'quickcheck')
-rwxr-xr-x | quickcheck | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -7,15 +7,17 @@ %% 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}, + [Mod] ++ [[{numtests, NumTests}, + {max_size, MaxSize}, {constraint_tries, 200}]]) of [] -> ok; R -> io:format("~p.~n", [R]), |