@@ -26,6 +26,8 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
2626 rabbit_common/mk/rabbitmq-dist.mk \
2727 rabbit_common/mk/rabbitmq-tools.mk
2828
29+ CT_OPTS += -ct_hooks cth_surefire
30+
2931# FIXME: Use erlang.mk patched for RabbitMQ, while waiting for PRs to be
3032# reviewed and merged.
3133
@@ -65,6 +67,9 @@ DEPS += $(DISTRIBUTED_DEPS)
6567endif
6668endif
6769
70+ # FIXME: Remove rabbitmq_test as TEST_DEPS from here for now.
71+ TEST_DEPS := amqp_client meck $(filter-out rabbitmq_test,$(TEST_DEPS ) )
72+
6873include erlang.mk
6974
7075# --------------------------------------------------------------------
@@ -101,24 +106,6 @@ clean:: clean-extra-sources
101106clean-extra-sources :
102107 $(gen_verbose ) rm -f $(EXTRA_SOURCES )
103108
104- # --------------------------------------------------------------------
105- # Tests.
106- # --------------------------------------------------------------------
107-
108- TARGETS_IN_RABBITMQ_TEST = $(patsubst % ,% -in-rabbitmq_test,\
109- tests full unit lite conformance16 lazy-vq-tests)
110-
111- .PHONY : $(TARGETS_IN_RABBITMQ_TEST )
112-
113- tests :: tests-in-rabbitmq_test
114-
115- $(TARGETS_IN_RABBITMQ_TEST ) : $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST ) \
116- test-build $(DEPS_DIR)/rabbitmq_test
117- $(MAKE) -C $(DEPS_DIR)/rabbitmq_test \
118- IS_DEP=1 \
119- RABBITMQ_BROKER_DIR=$(RABBITMQ_BROKER_DIR) \
120- $(patsubst %-in-rabbitmq_test,%,$@)
121-
122109# --------------------------------------------------------------------
123110# Documentation.
124111# --------------------------------------------------------------------
0 commit comments