Igor Murashkin | b624fc1 | 2018-10-09 14:56:33 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2018 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 | |
| 17 | <configuration description="Runs libiorap-java-tests."> |
| 18 | <option name="test-suite-tag" value="apct" /> |
| 19 | <option name="test-suite-tag" value="apct-instrumentation" /> |
| 20 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 21 | <option name="cleanup-apks" value="true" /> |
| 22 | <option name="test-file-name" value="libiorap-java-tests.apk" /> |
| 23 | </target_preparer> |
| 24 | |
| 25 | <!-- |
| 26 | Our IIorapIntegrationTest.kt requires setlinux to be disabled: |
| 27 | it connects to the iorapd binder service but this requires selinux permissions: |
| 28 | |
| 29 | avc: denied { find } for service=iorapd pid=2738 uid=10050 |
| 30 | scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:iorapd_service:s0 |
| 31 | tclass=service_manager permissive=0 |
| 32 | --> |
| 33 | <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer"> |
| 34 | </target_preparer> |
| 35 | |
Igor Murashkin | e9e439a | 2019-01-22 13:12:06 -0800 | [diff] [blame] | 36 | <target_preparer |
| 37 | class="com.android.tradefed.targetprep.DeviceSetup"> |
| 38 | <!-- Crash instead of using Log.wtf within the system_server iorap code. --> |
| 39 | <option name="set-property" key="iorapd.forwarding_service.wtf_crash" value="true" /> |
| 40 | <!-- IIorapd has fake behavior: it doesn't do anything but reply with 'DONE' status --> |
| 41 | <option name="set-property" key="iorapd.binder.fake" value="true" /> |
| 42 | <option name="restore-properties" value="true" /> |
| 43 | </target_preparer> |
| 44 | |
Igor Murashkin | b624fc1 | 2018-10-09 14:56:33 -0700 | [diff] [blame] | 45 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 46 | <option name="package" value="com.google.android.startop.iorap.tests" /> |
Brett Chabot | 502ec7a | 2019-03-01 14:43:20 -0800 | [diff] [blame] | 47 | <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> |
Igor Murashkin | b624fc1 | 2018-10-09 14:56:33 -0700 | [diff] [blame] | 48 | </test> |
| 49 | </configuration> |
| 50 | |