summaryrefslogtreecommitdiff
path: root/quickcheck
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-26 15:17:37 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-26 15:17:37 +0100
commit32d6e55012f7db98b7a40ee06e943e063ddd49c7 (patch)
treec351987f5be84b7b5d421a74f7a112d8b75c7f84 /quickcheck
parente255e8c51c2d0a111c81714d7d845bb4a5c3a3eb (diff)
parent5b09b3ad354f86ea2e3abcbcbcb2442edb3fdb6d (diff)
downloadrabbitmq-server-git-32d6e55012f7db98b7a40ee06e943e063ddd49c7.tar.gz
Merge bug24929
Diffstat (limited to 'quickcheck')
-rwxr-xr-xquickcheck8
1 files changed, 5 insertions, 3 deletions
diff --git a/quickcheck b/quickcheck
index 8b1736bb6e..59da37191e 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]),