|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2026 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +load("//bazel/rules/rules_score:rules_score.bzl", "unit", "unit_design") |
| 15 | +load("//validation/core/integration_test:puml_fixture.bzl", "provider_fbs_fixture_bundle") |
| 16 | + |
| 17 | +unit_design( |
| 18 | + name = "unit_design", |
| 19 | + static = ["class_diagram.puml"], |
| 20 | + visibility = ["//visibility:private"], |
| 21 | +) |
| 22 | + |
| 23 | +cc_library( |
| 24 | + name = "shared_types", |
| 25 | + hdrs = ["shared.h"], |
| 26 | +) |
| 27 | + |
| 28 | +cc_library( |
| 29 | + name = "implementation_one", |
| 30 | + srcs = ["implementation_one.cpp"], |
| 31 | + deps = [":shared_types"], |
| 32 | +) |
| 33 | + |
| 34 | +cc_library( |
| 35 | + name = "implementation_two", |
| 36 | + srcs = ["implementation_two.cpp"], |
| 37 | + deps = [":shared_types"], |
| 38 | +) |
| 39 | + |
| 40 | +unit( |
| 41 | + name = "unit", |
| 42 | + testonly = False, |
| 43 | + maturity = "development", |
| 44 | + tests = [], |
| 45 | + unit_design = [":unit_design"], |
| 46 | + visibility = ["//visibility:private"], |
| 47 | + implementation = [ |
| 48 | + ":implementation_one", |
| 49 | + ":implementation_two", |
| 50 | + ], |
| 51 | +) |
| 52 | + |
| 53 | +provider_fbs_fixture_bundle( |
| 54 | + name = "fbs", |
| 55 | + visibility = ["//visibility:private"], |
| 56 | + deps = [ |
| 57 | + ":unit", |
| 58 | + ":unit_design", |
| 59 | + ], |
| 60 | +) |
| 61 | + |
| 62 | +filegroup( |
| 63 | + name = "case_data", |
| 64 | + srcs = [ |
| 65 | + "expected.yaml", |
| 66 | + ":fbs", |
| 67 | + ], |
| 68 | + visibility = ["//validation/core/integration_test:__subpackages__"], |
| 69 | +) |
0 commit comments