summaryrefslogtreecommitdiff
path: root/quickcheck
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-10-28 18:05:38 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-10-28 18:05:38 +0100
commitffcb10bebde966300d0c7b0448cc7a35d561433d (patch)
treef0b3271873dbc4a0e0dac7127e9991a123460ef9 /quickcheck
parent6754c841f6922cba418b9b95374d3bf85fc5e7be (diff)
parent98ee8d9169e39470c081f7fe7a0d7b066190b6bf (diff)
downloadrabbitmq-server-git-ffcb10bebde966300d0c7b0448cc7a35d561433d.tar.gz
merge bug24513 into default
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;