117 lines
2.4 KiB
Python
117 lines
2.4 KiB
Python
load("@rules_erlang//:xref2.bzl", "xref")
|
|
load("@rules_erlang//:dialyze.bzl", "dialyze", "plt")
|
|
load(
|
|
"//:rabbitmq.bzl",
|
|
"BROKER_VERSION_REQUIREMENTS_ANY",
|
|
"RABBITMQ_DIALYZER_OPTS",
|
|
"assert_suites",
|
|
"broker_for_integration_suites",
|
|
"rabbitmq_app",
|
|
"rabbitmq_integration_suite",
|
|
"rabbitmq_suite",
|
|
)
|
|
|
|
APP_ENV = """[
|
|
{default_user, "guest"},
|
|
{default_vhost, <<"/">>},
|
|
{protocol_strict_mode, false}
|
|
]"""
|
|
|
|
APP_NAME = "rabbitmq_amqp1_0"
|
|
|
|
APP_DESCRIPTION = "AMQP 1.0 support for RabbitMQ"
|
|
|
|
BUILD_DEPS = [
|
|
"//deps/rabbitmq_cli:rabbitmqctl",
|
|
]
|
|
|
|
DEPS = [
|
|
"//deps/rabbit_common:erlang_app",
|
|
"//deps/amqp_client:erlang_app",
|
|
"//deps/amqp10_common:erlang_app",
|
|
]
|
|
|
|
RUNTIME_DEPS = [
|
|
"//deps/rabbit:erlang_app",
|
|
]
|
|
|
|
rabbitmq_app(
|
|
app_description = APP_DESCRIPTION,
|
|
app_env = APP_ENV,
|
|
app_extra_keys = BROKER_VERSION_REQUIREMENTS_ANY,
|
|
app_name = APP_NAME,
|
|
build_deps = BUILD_DEPS,
|
|
runtime_deps = RUNTIME_DEPS,
|
|
deps = DEPS,
|
|
)
|
|
|
|
xref(
|
|
additional_libs = BUILD_DEPS,
|
|
)
|
|
|
|
plt(
|
|
name = "base_plt",
|
|
# this ought to include BUILD_DEPS, but not sure how to
|
|
# get dialyze of elixir code working yet
|
|
deps = DEPS,
|
|
)
|
|
|
|
dialyze(
|
|
size = "medium",
|
|
dialyzer_opts = RABBITMQ_DIALYZER_OPTS + ["-Wno_undefined_callbacks"],
|
|
plt = ":base_plt",
|
|
warnings_as_errors = False,
|
|
)
|
|
|
|
broker_for_integration_suites()
|
|
|
|
PACKAGE = "deps/rabbitmq_amqp1_0"
|
|
|
|
suites = [
|
|
rabbitmq_integration_suite(
|
|
PACKAGE,
|
|
name = "amqp10_client_SUITE",
|
|
size = "medium",
|
|
runtime_deps = [
|
|
"//deps/amqp10_client:erlang_app",
|
|
],
|
|
),
|
|
rabbitmq_integration_suite(
|
|
PACKAGE,
|
|
name = "command_SUITE",
|
|
size = "medium",
|
|
deps = [
|
|
"//deps/amqp10_common:erlang_app",
|
|
],
|
|
),
|
|
rabbitmq_integration_suite(
|
|
PACKAGE,
|
|
name = "proxy_protocol_SUITE",
|
|
size = "medium",
|
|
),
|
|
rabbitmq_integration_suite(
|
|
PACKAGE,
|
|
name = "system_SUITE",
|
|
flaky = True,
|
|
tags = [
|
|
"dotnet",
|
|
"exclusive",
|
|
],
|
|
test_env = {
|
|
"TMPDIR": "$TEST_TMPDIR",
|
|
},
|
|
),
|
|
rabbitmq_suite(
|
|
name = "unit_SUITE",
|
|
size = "small",
|
|
deps = [
|
|
"//deps/amqp10_common:erlang_app",
|
|
],
|
|
),
|
|
]
|
|
|
|
assert_suites(
|
|
suites,
|
|
glob(["test/**/*_SUITE.erl"]),
|
|
)
|