blob: 699b673b291546240d746ea50c3a90fb1937df37 [file] [log] [blame]
Armelle Laine4c9d64a2024-11-20 04:42:35 +00001// Copyright (C) 2024 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17 default_team: "trendy_team_trusty",
18}
19
Armelle Laine4c9d64a2024-11-20 04:42:35 +000020prebuilt_etc {
21 name: "trusty_test_vm_config",
22 enabled: false,
23 arch: {
Armelle Lainef50811b2025-01-23 00:40:04 +000024 arm64: {
25 src: "trusty-test_vm-config-arm64.json",
26 enabled: true,
27 },
Armelle Laine4c9d64a2024-11-20 04:42:35 +000028 x86_64: {
Armelle Lainef50811b2025-01-23 00:40:04 +000029 src: "trusty-test_vm-config-x86_64.json",
Armelle Laine4c9d64a2024-11-20 04:42:35 +000030 enabled: true,
31 },
32 },
33 filename: "trusty-test_vm-config.json",
34}
35
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000036prebuilt_etc {
37 name: "trusty_vm_launcher_sh",
38 enabled: false,
39 arch: {
Armelle Lainef50811b2025-01-23 00:40:04 +000040 arm64: {
41 enabled: true,
42 },
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000043 x86_64: {
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000044 enabled: true,
45 },
46 },
Armelle Lainef50811b2025-01-23 00:40:04 +000047 src: "trusty-vm-launcher.sh",
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000048 filename: "trusty-vm-launcher.sh",
49}
50
51prebuilt_etc {
52 name: "trusty_wait_ready_sh",
53 enabled: false,
54 arch: {
Armelle Lainef50811b2025-01-23 00:40:04 +000055 arm64: {
56 enabled: true,
57 },
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000058 x86_64: {
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000059 enabled: true,
60 },
61 },
Armelle Lainef50811b2025-01-23 00:40:04 +000062 src: "trusty-wait-ready.sh",
Orlando Arbildo0347f9d2025-01-29 20:14:21 +000063 filename: "trusty-wait-ready.sh",
64}
65
Armelle Laine4c9d64a2024-11-20 04:42:35 +000066sh_test {
67 name: "TrustyTestVM_UnitTests",
68 src: "trusty-ut-ctrl.sh",
Armelle Lainef50811b2025-01-23 00:40:04 +000069 enabled: false,
70 arch: {
71 arm64: {
72 enabled: true,
73 },
74 x86_64: {
75 enabled: true,
76 },
77 },
Armelle Laine4c9d64a2024-11-20 04:42:35 +000078 filename_from_src: true,
79 data: [
Armelle Lainef50811b2025-01-23 00:40:04 +000080 ":trusty_test_vm_elf",
Armelle Laine4c9d64a2024-11-20 04:42:35 +000081 ":trusty_test_vm_config",
82 "trusty-vm-launcher.sh",
83 "trusty-wait-ready.sh",
84 ],
85 // TODO(b/378367793) use the AndroidTest.xml generated from the trusty
86 // test-map for test_vm payload
87 test_config_template: "AndroidTest.xml",
88 test_suites: [
89 "general-tests",
90 ],
Armelle Laine4c9d64a2024-11-20 04:42:35 +000091}