Add an assertion that no deps/rabbit common test suites are missing
in bazel
This commit is contained in:
parent
71ae7e7d14
commit
05111b3653
File diff suppressed because it is too large
Load Diff
|
|
@ -90,6 +90,7 @@ def rabbitmq_suite(erlc_opts = [], test_env = {}, **kwargs):
|
|||
}.items() + test_env.items()),
|
||||
**kwargs
|
||||
)
|
||||
return kwargs["name"]
|
||||
|
||||
def broker_for_integration_suites():
|
||||
rabbitmq_home(
|
||||
|
|
@ -143,3 +144,10 @@ def rabbitmq_integration_suite(
|
|||
] + deps,
|
||||
**kwargs
|
||||
)
|
||||
return kwargs["name"]
|
||||
|
||||
def assert_suites(suite_names, suite_files):
|
||||
for f in suite_files:
|
||||
sn = f.rpartition("/")[-1].replace(".erl", "")
|
||||
if not sn in suite_names:
|
||||
fail("A bazel rule has not been defined for {} (expected {} in {}".format(f, sn, suite_names))
|
||||
|
|
|
|||
Loading…
Reference in New Issue