blob: d10bf6ec81a8b38fce3a7560505b9f8237f9c8f3 [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
20// python -c "import hashlib; print(hashlib.sha256(b'trusty_test_vm_salt').hexdigest())"
21trusty_test_vm_salt = "5ce3eab1a08540e1334c83f54b8608aa6c23feee6939693cac41441449c5a51f"
22
23TRUSTY_TEST_VM_VERSION = 1
24
25avb_add_hash_footer {
26 name: "trusty_test_vm_signed",
27 filename: "trusty_test_vm_signed",
28 partition_name: "boot",
29 private_key: ":trusty_vm_sign_key",
30 salt: trusty_test_vm_salt,
31 rollback_index: TRUSTY_TEST_VM_VERSION,
32 src: ":empty_file",
33 enabled: false,
34 arch: {
35 x86_64: {
36 src: ":trusty-test-lk.elf",
37 enabled: true,
38 },
39 },
40}
41
42prebuilt_etc {
43 name: "trusty_test_vm_config",
44 enabled: false,
45 arch: {
46 x86_64: {
47 src: "vm_config_lk_x86_64.json",
48 enabled: true,
49 },
50 },
51 filename: "trusty-test_vm-config.json",
52}
53
54sh_test {
55 name: "TrustyTestVM_UnitTests",
56 src: "trusty-ut-ctrl.sh",
57 filename_from_src: true,
58 data: [
59 ":trusty_test_vm_signed",
60 ":trusty_test_vm_config",
61 "trusty-vm-launcher.sh",
62 "trusty-wait-ready.sh",
63 ],
64 // TODO(b/378367793) use the AndroidTest.xml generated from the trusty
65 // test-map for test_vm payload
66 test_config_template: "AndroidTest.xml",
67 test_suites: [
68 "general-tests",
69 ],
70 enabled: false,
71 arch: {
72 x86_64: {
73 enabled: true,
74 },
75 },
76}