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 | 5b09b3ad354f86ea2e3abcbcbcb2442edb3fdb6d (patch) | |
| tree | a5b60c85f71f85bdbefeb2ccce626e603b82ad9c /quickcheck | |
| parent | 9f7e6855f146750ea91e052eb95ba583d5d1b912 (diff) | |
| download | rabbitmq-server-git-5b09b3ad354f86ea2e3abcbcbcb2442edb3fdb6d.tar.gz | |
Control max_size, and remove some broken premature abstraction from the Makefile.
Diffstat (limited to 'quickcheck')
| -rwxr-xr-x | quickcheck | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/quickcheck b/quickcheck index 8b1736bb6e..59da37191e 100755 --- a/quickcheck +++ b/quickcheck @@ -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]), |
