summaryrefslogtreecommitdiff
path: root/quickcheck
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-10-26 14:43:27 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-10-26 14:43:27 +0100
commitaf4080cea71658a97a06e7b9e4037e2399a1c037 (patch)
treec80723c83f28e5790f03e2f89349076f63a7df65 /quickcheck
parent8945393a86bac954a767f8145dac6e8332840327 (diff)
parent428ea7c88dc5a2cfe0a4efa544ea86c4b8fac42f (diff)
downloadrabbitmq-server-git-af4080cea71658a97a06e7b9e4037e2399a1c037.tar.gz
Merge bug24308 (msg_store perf unnecessarily bounded by disk)
Diffstat (limited to 'quickcheck')
-rwxr-xr-xquickcheck9
1 files changed, 5 insertions, 4 deletions
diff --git a/quickcheck b/quickcheck
index a36cf3ed86..b5382d75b9 100755
--- a/quickcheck
+++ b/quickcheck
@@ -6,15 +6,16 @@
%% A helper to test quickcheck properties on a running broker
%% NodeStr is a local broker node name
%% ModStr is the module containing quickcheck properties
-%% The number of trials is optional
-main([NodeStr, ModStr | TrialsStr]) ->
+%% TrialsStr is the number of trials
+main([NodeStr, ModStr, TrialsStr]) ->
{ok, Hostname} = inet:gethostname(),
Node = list_to_atom(NodeStr ++ "@" ++ Hostname),
Mod = list_to_atom(ModStr),
- Trials = lists:map(fun erlang:list_to_integer/1, TrialsStr),
+ Trials = erlang:list_to_integer(TrialsStr),
case rpc:call(Node, code, ensure_loaded, [proper]) of
{module, proper} ->
- case rpc:call(Node, proper, module, [Mod] ++ Trials) of
+ case rpc:call(Node, proper, module,
+ [Mod] ++ [[{numtests, Trials}, {constraint_tries, 200}]]) of
[] -> ok;
_ -> quit(1)
end;