|
| 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 | +load("@pip_score_venv_test//:requirements.bzl", "all_requirements") |
| 14 | +load("@rules_python//python:pip.bzl", "compile_pip_requirements") |
| 15 | +load("@score_tooling//python_basics:defs.bzl", "score_py_pytest", "score_virtualenv") |
| 16 | + |
| 17 | +# In order to update the requirements, change the `requirements.txt` file and run: |
| 18 | +# `bazel run //tests/integration:requirements.update`. |
| 19 | +# This will update the `requirements.lock` file. |
| 20 | +# To upgrade all dependencies to their latest versions, run: |
| 21 | +# `bazel run //tests/integration:requirements.update -- --upgrade`. |
| 22 | +compile_pip_requirements( |
| 23 | + name = "requirements", |
| 24 | + srcs = [ |
| 25 | + "requirements.txt", |
| 26 | + "@score_tooling//python_basics:requirements.txt", |
| 27 | + ], |
| 28 | + extra_args = [ |
| 29 | + "--no-annotate", |
| 30 | + ], |
| 31 | + requirements_txt = "requirements.lock", |
| 32 | + tags = [ |
| 33 | + "manual", |
| 34 | + ], |
| 35 | +) |
| 36 | + |
| 37 | +score_virtualenv( |
| 38 | + name = "python_tc_venv", |
| 39 | + reqs = all_requirements, |
| 40 | + venv_name = ".python_tc_venv", |
| 41 | +) |
| 42 | + |
| 43 | +cc_library( |
| 44 | + name = "test_helper", |
| 45 | + hdrs = ["test_helper.hpp"], |
| 46 | + visibility = ["//tests:__subpackages__"], |
| 47 | + deps = [ |
| 48 | + "@googletest//:gtest_main", |
| 49 | + ], |
| 50 | +) |
| 51 | + |
| 52 | +py_library( |
| 53 | + name = "control_interface", |
| 54 | + srcs = ["control_interface.py"], |
| 55 | + visibility = ["//tests:__subpackages__"], |
| 56 | +) |
| 57 | + |
| 58 | +py_library( |
| 59 | + name = "testing_utils", |
| 60 | + srcs = ["testing_utils.py"], |
| 61 | + visibility = ["//tests:__subpackages__"], |
| 62 | + deps = [":control_interface"], |
| 63 | +) |
0 commit comments