summaryrefslogtreecommitdiff
path: root/quickcheck
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-08-12 11:03:17 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-08-12 11:03:17 +0100
commitc43abda6452bbba93ab17cff04e27438611f3e1f (patch)
tree349ad6c96310d42e4a47d29f7c59152d10271547 /quickcheck
parentd7f01fd1ffd2df32ab23367f26f94f4ebd896ed5 (diff)
parentbbbfc715ff0fe2f66e6f741caa79a39624e322ce (diff)
downloadrabbitmq-server-git-c43abda6452bbba93ab17cff04e27438611f3e1f.tar.gz
stable to default
Diffstat (limited to 'quickcheck')
-rwxr-xr-xquickcheck12
1 files changed, 8 insertions, 4 deletions
diff --git a/quickcheck b/quickcheck
index b5382d75b9..59da37191e 100755
--- a/quickcheck
+++ b/quickcheck
@@ -7,17 +7,21 @@
%% 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;
- _ -> quit(1)
+ R -> io:format("~p.~n", [R]),
+ quit(1)
end;
{badrpc, Reason} ->
io:format("Could not contact node ~p: ~p.~n", [Node, Reason]),