diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-11-07 12:06:57 +0000 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-11-07 12:06:57 +0000 |
| commit | ffbe61e27e210ae6e0002418c27f014af9ba8689 (patch) | |
| tree | e409b82b27e68499a9f5310dbb788b10eee06a30 /quickcheck | |
| parent | 61f48f0867ca77de86a224db3ba1855497dc722b (diff) | |
| parent | c60fdf21357804931761fa154c803259dcdf20c6 (diff) | |
| download | rabbitmq-server-git-ffbe61e27e210ae6e0002418c27f014af9ba8689.tar.gz | |
merge default into bug20337
Diffstat (limited to 'quickcheck')
| -rwxr-xr-x | quickcheck | 9 |
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; |
