** This CL reapplies aosp/3150696. Now it is connected to a corresponding change in rust soong module to ensure system test dir does not change to avoid b/350479879. ** Make the template more consistent with the native (aka cc) test temlate. The important change is that vendor tests will be pushed into /data/local/tests/vendor. Having the test binary in the vendor test folder makes the linker treat it as a vendor binary and prefer vendor libraries. Previously, the test binary was always a system binary (due to being in /data/local/tmp) and used system libraries first potentially leading to bugs (e.g. the one attached). This change also makes vendor tests that use vendor libraries require root due to an existing SELinux policy issue with atest. Bug: 347370677 Test: checked with: - libsecretkeeper_core_test - libauthgraph_boringssl_test - libdice_policy.test Test steps: atest -d <test>.vendor # runs vendor variant, passes adb root adb shell find / -iname <test> 2>/dev/null # before change: /data/local/tmp/<test> # after change: /data/local/tests/vendor/<test> Test: v2/android-kvm-team/avf_presubmit_tests Change-Id: I19793bd20bc23ff0c78e622bc6b93f9a90d725c0
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2019 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.
|
|
-->
|
|
<!-- This test config file is auto-generated. -->
|
|
<configuration description="Config to run {MODULE} device tests.">
|
|
|
|
{EXTRA_CONFIGS}
|
|
|
|
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
|
<option name="cleanup" value="true" />
|
|
<option name="push" value="{MODULE}->{TEST_INSTALL_BASE}/{MODULE}" />
|
|
</target_preparer>
|
|
|
|
<test class="com.android.tradefed.testtype.rust.RustBinaryTest" >
|
|
<option name="test-device-path" value="{TEST_INSTALL_BASE}" />
|
|
<option name="module-name" value="{MODULE}" />
|
|
</test>
|
|
</configuration>
|