|
1 | 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 | 2 | # Copyright (c) 2025 Contributors to the Eclipse Foundation |
15 | 3 | # |
16 | 4 | # See the NOTICE file(s) distributed with this work for additional |
|
21 | 9 | # https://www.apache.org/licenses/LICENSE-2.0 |
22 | 10 | # |
23 | 11 | # SPDX-License-Identifier: Apache-2.0 |
24 | | -# ******************************************************************************** |
| 12 | +# ******************************************************************************* |
25 | 13 |
|
| 14 | +load("@rules_cc//cc:cc_binary.bzl", "cc_binary") |
| 15 | +load("@rules_pkg//pkg:tar.bzl", "pkg_tar") |
26 | 16 | load("//score/test/component:defs.bzl", "py_logging_itf_test") |
27 | 17 |
|
| 18 | +# ============================================================================= |
| 19 | +# filetransfer app |
| 20 | +# ============================================================================= |
| 21 | + |
| 22 | +cc_binary( |
| 23 | + name = "filetransfer_app", |
| 24 | + srcs = ["filetransfer_app.cpp"], |
| 25 | + deps = [ |
| 26 | + "//score/datarouter/dlt_filetransfer_trigger_lib", |
| 27 | + "//score/mw/log", |
| 28 | + ], |
| 29 | +) |
| 30 | + |
| 31 | +pkg_tar( |
| 32 | + name = "filetransfer_bin_pkg", |
| 33 | + srcs = [":filetransfer_app"], |
| 34 | + package_dir = "opt/test_apps/filetransfer/bin", |
| 35 | +) |
| 36 | + |
| 37 | +pkg_tar( |
| 38 | + name = "filetransfer_config_pkg", |
| 39 | + srcs = ["filetransfer_etc/logging.json"], |
| 40 | + package_dir = "opt/test_apps/filetransfer/etc", |
| 41 | +) |
| 42 | + |
| 43 | +pkg_tar( |
| 44 | + name = "filetransfer_filesystem", |
| 45 | + deps = [ |
| 46 | + ":filetransfer_bin_pkg", |
| 47 | + ":filetransfer_config_pkg", |
| 48 | + ], |
| 49 | +) |
| 50 | + |
| 51 | +py_logging_itf_test( |
| 52 | + name = "test_filetransfer", |
| 53 | + srcs = ["test_filetransfer.py"], |
| 54 | + filesystem = ":filetransfer_filesystem", |
| 55 | +) |
| 56 | + |
| 57 | +# ============================================================================= |
| 58 | +# datarouter filters test (requires enable_nonverbose_dlt=True) |
| 59 | +# ============================================================================= |
| 60 | + |
28 | 61 | py_logging_itf_test( |
29 | 62 | name = "test_datarouter_filters", |
30 | 63 | srcs = ["test_datarouter_filters.py"], |
|
0 commit comments