Skip to content

Commit 1fc2463

Browse files
committed
move filetransfer into datarouter, enable nonverbose dlt
1 parent 98636f2 commit 1fc2463

7 files changed

Lines changed: 49 additions & 67 deletions

File tree

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ common --@score_baselibs//score/mw/log/flags:KRemote_Logging=False
3333
common --@score_baselibs//score/json:base_library=nlohmann
3434
common --//score/datarouter/build_configuration_flags:persistent_logging=False
3535
common --//score/datarouter/build_configuration_flags:persistent_config_feature_enabled=False
36-
common --//score/datarouter/build_configuration_flags:enable_nonverbose_dlt=False
36+
common --//score/datarouter/build_configuration_flags:enable_nonverbose_dlt=True
3737
common --//score/datarouter/build_configuration_flags:enable_dynamic_configuration=False
3838
common --//score/datarouter/build_configuration_flags:file_transfer=False
3939
common --//score/datarouter/build_configuration_flags:use_local_vlan=True

.github/workflows/sanitizers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
bazel test \
5757
--config=${{ matrix.sanitizer_config }} \
5858
//score/... \
59-
--build_tag_filters=-rust \
60-
--test_tag_filters=-rust \
59+
--build_tag_filters=-rust,-integration \
60+
--test_tag_filters=-rust,-integration \
6161
--verbose_failures
6262
6363
- name: Upload Bazel test logs (always)

score/test/component/datarouter/BUILD

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
# *******************************************************************************
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-
# ********************************************************************************
142
# Copyright (c) 2025 Contributors to the Eclipse Foundation
153
#
164
# See the NOTICE file(s) distributed with this work for additional
@@ -21,10 +9,55 @@
219
# https://www.apache.org/licenses/LICENSE-2.0
2210
#
2311
# SPDX-License-Identifier: Apache-2.0
24-
# ********************************************************************************
12+
# *******************************************************************************
2513

14+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
15+
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
2616
load("//score/test/component:defs.bzl", "py_logging_itf_test")
2717

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+
2861
py_logging_itf_test(
2962
name = "test_datarouter_filters",
3063
srcs = ["test_datarouter_filters.py"],
File renamed without changes.

score/test/component/filetransfer/etc/logging.json renamed to score/test/component/datarouter/filetransfer_etc/logging.json

File renamed without changes.
File renamed without changes.

score/test/component/filetransfer/BUILD

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)