diff options
author | Jean-Sebastien Pedron <jean-sebastien@rabbitmq.com> | 2014-12-03 15:27:45 +0100 |
---|---|---|
committer | Jean-Sebastien Pedron <jean-sebastien@rabbitmq.com> | 2014-12-03 15:27:45 +0100 |
commit | b4cfde3f0930f953bb8da3a4e70c37740ce9c75d (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /quickcheck | |
parent | 008476172f305e1e6b12f9e2701a39e0b9f06ecf (diff) | |
parent | 2b4eddb2a587f1555ec1ec835e7304fd430bba29 (diff) | |
download | rabbitmq-server-junk.tar.gz |
Junked bug26446junk
Diffstat (limited to 'quickcheck')
-rwxr-xr-x | quickcheck | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/quickcheck b/quickcheck deleted file mode 100755 index 59da3719..00000000 --- a/quickcheck +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env escript -%% -*- erlang -*- -%%! -sname quickcheck --mode(compile). - -%% A helper to test quickcheck properties on a running broker -%% NodeStr is a local broker node name -%% ModStr is the module containing quickcheck properties -%% TrialsStr is the number of trials -main([NodeStr, ModStr, NumTestsStr, MaxSizeStr]) -> - {ok, Hostname} = inet:gethostname(), - Node = list_to_atom(NodeStr ++ "@" ++ Hostname), - Mod = list_to_atom(ModStr), - 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, NumTests}, - {max_size, MaxSize}, - {constraint_tries, 200}]]) of - [] -> ok; - R -> io:format("~p.~n", [R]), - quit(1) - end; - {badrpc, Reason} -> - io:format("Could not contact node ~p: ~p.~n", [Node, Reason]), - quit(2); - {error,nofile} -> - io:format("Module PropEr was not found on node ~p~n", [Node]), - quit(2) - end; -main([]) -> - io:format("This script requires a node name and a module.~n"). - -quit(Status) -> - case os:type() of - {unix, _} -> halt(Status); - {win32, _} -> init:stop(Status) - end. - |