rabbitmq-server/deps/rabbitmq_amqp1_0/BUILD.bazel

108 lines
2.1 KiB
Python
Raw Normal View History

load("@rules_erlang//:xref.bzl", "xref")
load("@rules_erlang//:dialyze.bzl", "dialyze")
load(
"//:rabbitmq.bzl",
"RABBITMQ_DIALYZER_OPTS",
"assert_suites",
2021-05-11 16:44:28 +08:00
"broker_for_integration_suites",
"rabbitmq_app",
"rabbitmq_integration_suite",
2021-05-11 16:44:28 +08:00
"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_name = APP_NAME,
build_deps = BUILD_DEPS,
runtime_deps = RUNTIME_DEPS,
deps = DEPS,
)
xref(
size = "small",
tags = ["xref"],
)
2021-05-31 16:17:49 +08:00
dialyze(
size = "medium",
dialyzer_opts = RABBITMQ_DIALYZER_OPTS,
2021-05-31 16:17:49 +08:00
plt = "//:base_plt",
tags = ["dialyze"],
)
2021-05-11 16:44:28 +08:00
broker_for_integration_suites()
PACKAGE = "deps/rabbitmq_amqp1_0"
suites = [
rabbitmq_integration_suite(
PACKAGE,
name = "amqp10_client_SUITE",
2021-07-27 19:32:06 +08:00
size = "medium",
runtime_deps = [
"//deps/amqp10_client:erlang_app",
],
),
rabbitmq_integration_suite(
PACKAGE,
name = "command_SUITE",
2021-07-28 16:38:04 +08:00
size = "medium",
deps = [
"//deps/amqp10_common:erlang_app",
],
),
rabbitmq_integration_suite(
PACKAGE,
name = "proxy_protocol_SUITE",
2021-07-28 16:38:04 +08:00
size = "medium",
),
rabbitmq_integration_suite(
PACKAGE,
name = "system_SUITE",
flaky = True,
tags = [
"dotnet",
],
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"]),
)