summaryrefslogtreecommitdiff
path: root/quickcheck
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-26 15:16:55 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-26 15:16:55 +0100
commit4aee9ee5339052d203ff421e3299621ca6c3b798 (patch)
treea5b60c85f71f85bdbefeb2ccce626e603b82ad9c /quickcheck
parentcfc8336440df39a8d8749f5133852d0602727957 (diff)
downloadrabbitmq-server-4aee9ee5339052d203ff421e3299621ca6c3b798.tar.gz
Control max_size, and remove some broken premature abstraction from the Makefile.bug24929
Diffstat (limited to 'quickcheck')
-rwxr-xr-xquickcheck8
1 files changed, 5 insertions, 3 deletions
diff --git a/quickcheck b/quickcheck
index 8b1736bb..59da3719 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]),