blob: 9eaaed3209dfc8dae529df8e7cdd39254101b665 [file] [log] [blame]
Jaewan Kimb5fb9692024-06-10 14:18:12 +09001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright 2024 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<configuration description="Host driven tests for ferrochrome">
17 <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
18 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
19 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
20
21 <!-- 'adb root' to enable vmlauncher -->
22 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
23 <option name="force-root" value="true"/>
24 </target_preparer>
25
Jaewan Kim3ad58c32024-06-13 08:59:29 +000026 <!-- Check assumptions here, because we can't skip tests in shell test -->
27 <target_preparer class="com.android.tradefed.targetprep.RunHostScriptTargetPreparer">
28 <option name="script-file" value="ferrochrome-precondition-checker.sh" />
29 </target_preparer>
30
31 <!-- Explicitly clean up ferrochrome image when done.
32 It's too large (6.5G+), so this may break further tests. -->
Jaewan Kimb5fb9692024-06-10 14:18:12 +090033 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
Jaewan Kim3ad58c32024-06-13 08:59:29 +000034 <option name="throw-if-cmd-fail" value="false" />
Jaewan Kim5ebeb222024-07-05 19:14:53 +090035 <option name="run-command" value="mkdir /data/local/tmp" />
Jaewan Kim3ad58c32024-06-13 08:59:29 +000036 <option name="teardown-command" value="pkill vmlauncher" />
Jaewan Kim4294ae12024-07-18 15:11:03 +090037 <option name="teardown-command" value="rm /data/local/tmp/chromiumos_base_image.bin" />
Jaewan Kimb5fb9692024-06-10 14:18:12 +090038 </target_preparer>
39
40 <test class="com.android.tradefed.testtype.binary.ExecutableHostTest" >
41 <option name="binary" value="ferrochrome-tests" />
Jaewan Kim3ad58c32024-06-13 08:59:29 +000042 <option name="relative-path-execution" value="true" />
Jaewan Kimb5fb9692024-06-10 14:18:12 +090043 <option name="runtime-hint" value="10m" />
44 <option name="per-binary-timeout" value="20m" />
45 </test>
46</configuration>
47