Skip to content

Commit 03eb3f1

Browse files
authored
reenable qnx qemu (#62)
1 parent 9e4d2cd commit 03eb3f1

File tree

1 file changed

+135
-0
lines changed

1 file changed

+135
-0
lines changed

qnx_qemu/BUILD

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 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("@rules_shell//shell:sh_binary.bzl", "sh_binary")
14+
load("@score_itf//:defs.bzl", "py_itf_test")
15+
16+
17+
sh_binary(
18+
name = "run_qemu",
19+
srcs = ["scripts/run_qemu.sh"],
20+
args = [
21+
"$(location @toolchains_qnx_sdp//:host_dir)",
22+
"$(location //build:init)",
23+
],
24+
data = [
25+
"//build:init",
26+
"@toolchains_qnx_sdp//:host_all",
27+
"@toolchains_qnx_sdp//:host_dir",
28+
],
29+
)
30+
31+
sh_binary(
32+
name = "run_qemu_portforward",
33+
srcs = ["scripts/run_qemu_portforward.sh"],
34+
args = [
35+
"$(location @toolchains_qnx_sdp//:host_dir)",
36+
"$(location //build:init)",
37+
],
38+
data = [
39+
"//build:init",
40+
"@toolchains_qnx_sdp//:host_all",
41+
"@toolchains_qnx_sdp//:host_dir",
42+
],
43+
)
44+
45+
46+
sh_binary(
47+
name = "test_qemu_bridge",
48+
srcs = ["test/test_qnx_qemu_bridge.sh"],
49+
args = [
50+
"$(location @toolchains_qnx_sdp//:host_dir)",
51+
"$(location //build:init)",
52+
"--timeout=90",
53+
"--ssh-port=2222",
54+
"--boot-wait=15",
55+
],
56+
data = [
57+
"//build:init",
58+
"@toolchains_qnx_sdp//:host_all",
59+
"@toolchains_qnx_sdp//:host_dir",
60+
],
61+
)
62+
63+
sh_binary(
64+
name = "test_qemu_portforward",
65+
srcs = ["test/test_qnx_qemu_portforward.sh"],
66+
args = [
67+
"$(location @toolchains_qnx_sdp//:host_dir)",
68+
"$(location //build:init)",
69+
"--timeout=90",
70+
"--ssh-port=2222",
71+
"--boot-wait=15",
72+
],
73+
data = [
74+
"//build:init",
75+
"@toolchains_qnx_sdp//:host_all",
76+
"@toolchains_qnx_sdp//:host_dir",
77+
],
78+
)
79+
80+
py_itf_test(
81+
name = "test_ssh_qemu",
82+
srcs = [
83+
"test/itf/test_ssh.py",
84+
],
85+
args = [
86+
"--target_config=$(location target_config.json)",
87+
"--ecu=s_core_ecu_qemu",
88+
"--qemu_image=$(location //build:init)",
89+
],
90+
plugins = [
91+
"itf.plugins.base.base_plugin",
92+
],
93+
data = [
94+
"//build:init",
95+
"target_config.json",
96+
],
97+
)
98+
99+
py_itf_test(
100+
name = "test_scrample_qemu",
101+
srcs = [
102+
"test/itf/test_scrample.py",
103+
],
104+
args = [
105+
"--target_config=$(location target_config.json)",
106+
"--ecu=s_core_ecu_qemu",
107+
"--qemu_image=$(location //build:init)",
108+
],
109+
plugins = [
110+
"itf.plugins.base.base_plugin",
111+
],
112+
data = [
113+
"//build:init",
114+
"target_config.json",
115+
],
116+
)
117+
118+
py_itf_test(
119+
name = "test_persistency_qemu",
120+
srcs = [
121+
"test/itf/test_persistency.py",
122+
],
123+
args = [
124+
"--target_config=$(location target_config.json)",
125+
"--ecu=s_core_ecu_qemu",
126+
"--qemu_image=$(location //build:init)",
127+
],
128+
plugins = [
129+
"itf.plugins.base.base_plugin",
130+
],
131+
data = [
132+
"//build:init",
133+
"target_config.json",
134+
],
135+
)

0 commit comments

Comments
 (0)