Control max_size, and remove some broken premature abstraction from the Makefile.
This commit is contained in:
parent
9f7e6855f1
commit
5b09b3ad35
5
Makefile
5
Makefile
|
|
@ -20,8 +20,6 @@ MANPAGES=$(patsubst %.xml, %.gz, $(wildcard $(DOCS_DIR)/*.[0-9].xml))
|
|||
WEB_MANPAGES=$(patsubst %.xml, %.man.xml, $(wildcard $(DOCS_DIR)/*.[0-9].xml) $(DOCS_DIR)/rabbitmq-service.xml $(DOCS_DIR)/rabbitmq-echopid.xml)
|
||||
USAGES_XML=$(DOCS_DIR)/rabbitmqctl.1.xml $(DOCS_DIR)/rabbitmq-plugins.1.xml
|
||||
USAGES_ERL=$(foreach XML, $(USAGES_XML), $(call usage_xml_to_erl, $(XML)))
|
||||
QC_MODULES := rabbit_backing_queue_qc gm_qc
|
||||
QC_TRIALS ?= 100
|
||||
|
||||
ifeq ($(shell python -c 'import simplejson' 2>/dev/null && echo yes),yes)
|
||||
PYTHON=python
|
||||
|
|
@ -223,7 +221,8 @@ run-tests: all
|
|||
echo $$OUT ; echo $$OUT | grep '^{ok, passed}$$' > /dev/null
|
||||
|
||||
run-qc: all
|
||||
$(foreach MOD,$(QC_MODULES),./quickcheck $(RABBITMQ_NODENAME) $(MOD) $(QC_TRIALS))
|
||||
./quickcheck $(RABBITMQ_NODENAME) rabbit_backing_queue_qc 100 40
|
||||
./quickcheck $(RABBITMQ_NODENAME) gm_qc 1000 200
|
||||
|
||||
start-background-node: all
|
||||
-rm -f $(RABBITMQ_MNESIA_DIR).pid
|
||||
|
|
|
|||
|
|
@ -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]),
|
||||
|
|
|
|||
Loading…
Reference in New Issue