1load("@bazel-erlang//:xref.bzl", "xref")
2load("@bazel-erlang//:dialyze.bzl", "dialyze")
3load(
4    "//:rabbitmq.bzl",
5    "RABBITMQ_DIALYZER_OPTS",
6    "assert_suites",
7    "broker_for_integration_suites",
8    "rabbitmq_integration_suite",
9    "rabbitmq_lib",
10    "rabbitmq_suite",
11)
12
13APP_NAME = "rabbitmq_jms_topic_exchange"
14
15APP_DESCRIPTION = "RabbitMQ JMS topic selector exchange plugin"
16
17APP_MODULE = "rabbit_federation_app"
18
19DEPS = [
20    "//deps/rabbit_common:bazel_erlang_lib",
21]
22
23RUNTIME_DEPS = [
24    "//deps/rabbit:bazel_erlang_lib",
25]
26
27rabbitmq_lib(
28    app_description = APP_DESCRIPTION,
29    app_module = APP_MODULE,
30    app_name = APP_NAME,
31    runtime_deps = RUNTIME_DEPS,
32    deps = DEPS,
33)
34
35xref(tags = ["xref"])
36
37dialyze(
38    dialyzer_opts = RABBITMQ_DIALYZER_OPTS,
39    plt = "//:base_plt",
40    tags = ["dialyze"],
41)
42
43broker_for_integration_suites()
44
45PACKAGE = "deps/rabbitmq_jms_topic_exchange"
46
47suites = [
48    rabbitmq_integration_suite(
49        PACKAGE,
50        name = "rjms_topic_selector_SUITE",
51    ),
52    rabbitmq_suite(
53        name = "rjms_topic_selector_unit_SUITE",
54        size = "small",
55        deps = [
56            "//deps/amqp_client:bazel_erlang_lib",
57            "//deps/rabbit_common:bazel_erlang_lib",
58        ],
59    ),
60    rabbitmq_suite(
61        name = "sjx_evaluation_SUITE",
62        size = "small",
63    ),
64]
65
66assert_suites(
67    suites,
68    glob(["test/**/*_SUITE.erl"]),
69)
70