Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 2024 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <configuration description="Runs {MODULE}"> |
| 18 | <!-- object type="module_controller" class="com.android.tradefed.testtype.suite.module.CommandSuccessModuleController" --> |
| 19 | <!--Skip the test when trusty VM is not enabled. --> |
| 20 | <!--option name="run-command" value="getprop trusty.test_vm.nonsecure_vm_ready | grep 1" /--> |
| 21 | <!--/object--> |
| 22 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> |
| 23 | <!-- Target Preparers - Run Shell Commands --> |
| 24 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 25 | <option name="cleanup" value="true" /> |
Armelle Laine | bd9358a | 2025-03-03 05:05:47 +0000 | [diff] [blame^] | 26 | <option name="push-file" key="trusty-ut-ctrl.system" value="/data/local/tmp/trusty_test_vm/trusty-ut-ctrl" /> |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 27 | <option name="push-file" key="trusty-ut-ctrl.sh" value="/data/local/tmp/trusty_test_vm/trusty-ut-ctrl.sh" /> |
| 28 | <option name="push-file" key="trusty-vm-launcher.sh" value="/data/local/tmp/trusty_test_vm/trusty-vm-launcher.sh" /> |
| 29 | <option name="push-file" key="trusty-wait-ready.sh" value="/data/local/tmp/trusty_test_vm/trusty-wait-ready.sh" /> |
| 30 | <option name="push-file" key="trusty-test_vm-config.json" value="/data/local/tmp/trusty_test_vm/trusty-test_vm-config.json" /> |
Armelle Laine | f50811b | 2025-01-23 00:40:04 +0000 | [diff] [blame] | 31 | <option name="push-file" key="trusty_test_vm.elf" value="/data/local/tmp/trusty_test_vm/trusty_test_vm.elf" /> |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 32 | </target_preparer> |
| 33 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 34 | <option name="throw-if-cmd-fail" value="true" /> |
| 35 | <!--Note: the first run-command shall not expect the background command to have started --> |
| 36 | <option name="run-bg-command" value="sh /data/local/tmp/trusty_test_vm/trusty-vm-launcher.sh" /> |
| 37 | <option name="run-command" value="sh /data/local/tmp/trusty_test_vm/trusty-wait-ready.sh" /> |
Armelle Laine | bd9358a | 2025-03-03 05:05:47 +0000 | [diff] [blame^] | 38 | <option name="run-command" value="start storageproxyd_test_vm" /> |
| 39 | <option name="teardown-command" value="stop storageproxyd_test_vm" /> |
| 40 | <option name="teardown-command" value="killall storageproxyd_test_vm || true" /> |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 41 | </target_preparer> |
| 42 | <test class="com.android.tradefed.testtype.binary.ExecutableTargetTest" > |
| 43 | <option name="parse-gtest" value="true" /> |
| 44 | <option name="abort-if-device-lost" value="true"/> |
| 45 | <option name="abort-if-root-lost" value="true" /> |
| 46 | <option name="per-binary-timeout" value="10m" /> |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 47 | <option name="test-command-line" key="com.android.trusty.rust.hwcryptokey_test.test" value="/data/local/tmp/trusty_test_vm/trusty-ut-ctrl.sh com.android.trusty.rust.hwcryptokey_test.test"/> |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 48 | <option name="test-command-line" key="com.android.trusty.rust.storage_unittest_aidl.test" value="/data/local/tmp/trusty_test_vm/trusty-ut-ctrl.sh com.android.trusty.rust.storage_unittest_aidl.test"/> |
Armelle Laine | 4c9d64a | 2024-11-20 04:42:35 +0000 | [diff] [blame] | 49 | </test> |
| 50 | </configuration> |