summaryrefslogtreecommitdiff
path: root/quickcheck
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-26 16:22:21 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-26 16:22:21 +0100
commit937b1ae85933558bbbca1fc7a05f3ff674e07f70 (patch)
tree87059fc2cc643e83139e18c91e2eca49459e3167 /quickcheck
parentc23c9583976ef7d1408f776e284ea083e3c75d1d (diff)
parent5b09b3ad354f86ea2e3abcbcbcb2442edb3fdb6d (diff)
downloadrabbitmq-server-git-937b1ae85933558bbbca1fc7a05f3ff674e07f70.tar.gz
Merge bug24929
Diffstat (limited to 'quickcheck')
-rwxr-xr-xquickcheck9
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)