Also push the testdata in AndroidTest.xml for `atest`.
LOCAL_TEST_DATA was added in commit [1], which ships testdata next to
native tests.
With this CL,
1) manually sync-ing via `adb sync` and running tests with `adb shell`
keep working.
2) both of 32- and 64-bit recovery_{unit,component}_test now work in
APCT continuous tests. Note that 64-bit tests were failing
previously in APCT, due to missing testdata.
3) `atest recovery_unit_test` works, as the testdata gets pushed to
/data/local/tmp.
[1] commit d07ba4e2a625a8f000d042c1953adb612bccbbe2 in
https://android-review.googlesource.com/c/platform/build/+/312567.
Bug: 77320514
Test: Build recovery_{unit,component,manual}_test. Setup the test via
`adb sync data`. Run both of 32- and 64-bit versions on device.
Test: Build and run recovery_host_test on host, for both of 32- and
64-bit versions.
Test: `atest recovery_component_test`
Change-Id: Ie54037726043a3a659a80030b83db1f8c1de318d
34 lines
1.8 KiB
XML
34 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2017 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<configuration description="Config for recovery_component_test and recovery_unit_test">
|
|
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
|
<option name="cleanup" value="true" />
|
|
<option name="push" value="recovery_component_test->/data/local/tmp/recovery_component_test/recovery_component_test" />
|
|
<option name="push" value="testdata->/data/local/tmp/recovery_component_test/testdata" />
|
|
<option name="push" value="recovery_unit_test->/data/local/tmp/recovery_unit_test/recovery_unit_test" />
|
|
<option name="push" value="testdata->/data/local/tmp/recovery_unit_test/testdata" />
|
|
</target_preparer>
|
|
<option name="test-suite-tag" value="apct" />
|
|
<test class="com.android.tradefed.testtype.GTest" >
|
|
<option name="native-test-device-path" value="/data/local/tmp/recovery_component_test" />
|
|
<option name="module-name" value="recovery_component_test" />
|
|
</test>
|
|
<test class="com.android.tradefed.testtype.GTest" >
|
|
<option name="native-test-device-path" value="/data/local/tmp/recovery_unit_test" />
|
|
<option name="module-name" value="recovery_unit_test" />
|
|
</test>
|
|
</configuration>
|