Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 1 | // 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | default_team: "trendy_team_trusty", |
| 18 | } |
| 19 | |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 20 | prebuilt_etc { |
| 21 | name: "trusty_test_vm_config", |
| 22 | enabled: false, |
| 23 | arch: { |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 24 | arm64: { |
| 25 | src: "trusty-test_vm-config-arm64.json", |
| 26 | enabled: true, |
| 27 | }, |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 28 | x86_64: { |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 29 | src: "trusty-test_vm-config-x86_64.json", |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 30 | enabled: true, |
| 31 | }, |
| 32 | }, |
| 33 | filename: "trusty-test_vm-config.json", |
| 34 | } |
| 35 | |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 36 | prebuilt_etc { |
| 37 | name: "trusty_vm_launcher_sh", |
| 38 | enabled: false, |
| 39 | arch: { |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 40 | arm64: { |
| 41 | enabled: true, |
| 42 | }, |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 43 | x86_64: { |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 44 | enabled: true, |
| 45 | }, |
| 46 | }, |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 47 | src: "trusty-vm-launcher.sh", |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 48 | filename: "trusty-vm-launcher.sh", |
| 49 | } |
| 50 | |
| 51 | prebuilt_etc { |
| 52 | name: "trusty_wait_ready_sh", |
| 53 | enabled: false, |
| 54 | arch: { |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 55 | arm64: { |
| 56 | enabled: true, |
| 57 | }, |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 58 | x86_64: { |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 59 | enabled: true, |
| 60 | }, |
| 61 | }, |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 62 | src: "trusty-wait-ready.sh", |
Orlando Arbildo | 0347f9d | 2025-01-29 20:14:21 +0000 | [diff] [blame] | 63 | filename: "trusty-wait-ready.sh", |
| 64 | } |
| 65 | |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 66 | sh_test { |
| 67 | name: "TrustyTestVM_UnitTests", |
| 68 | src: "trusty-ut-ctrl.sh", |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 69 | enabled: false, |
| 70 | arch: { |
| 71 | arm64: { |
| 72 | enabled: true, |
| 73 | }, |
| 74 | x86_64: { |
| 75 | enabled: true, |
| 76 | }, |
| 77 | }, |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 78 | filename_from_src: true, |
| 79 | data: [ |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 80 | ":trusty_test_vm_elf", |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 81 | ":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 Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 91 | } |