Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48bf7540 authored by Harshit Mahajan's avatar Harshit Mahajan
Browse files

Add module controller for mts crashrecovery tests

Bug: 397182559
Change-Id: Ia235e10f0af28eb509e669d6e5f9247bff5e3944
Test: TH
Flag: EXEMPT not possible
parent ca8ecbeb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -31,4 +31,9 @@
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
    </test>

    <!-- Only run this Tests if the Crashrecovery Mainline module is installed. -->
    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
        <option name="mainline-module-package-name" value="com.google.android.crashrecovery" />
    </object>
</configuration>
+5 −0
Original line number Diff line number Diff line
@@ -31,4 +31,9 @@
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
    </test>

    <!-- Only run this Tests if the Crashrecovery Mainline module is installed. -->
    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
        <option name="mainline-module-package-name" value="com.google.android.crashrecovery" />
    </object>
</configuration>
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ android_test {
    static_libs: [
        "PlatformProperties",
        "androidx.test.rules",
        "androidx.test.runner",
        "flag-junit",
        "frameworks-base-testutils",
        "junit",
+3 −3
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.tests.packagewatchdog" >
    package="com.android.server" >

    <application android:debuggable="true">
        <uses-library android:name="android.test.runner" />
@@ -23,6 +23,6 @@


    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
                     android:targetPackage="com.android.tests.packagewatchdog"
        android:targetPackage="com.android.server"
        android:label="PackageWatchdog Test"/>
</manifest>
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 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="Runs PackageWatchdog Tests.">
    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
        <option name="cleanup-apks" value="true" />
        <option name="test-file-name" value="PackageWatchdogTest.apk" />
    </target_preparer>

    <option name="test-suite-tag" value="apct" />
    <option name="test-tag" value="PackageWatchdogTest" />

    <!-- Only run this tests in MTS if the Crashrecovery Mainline module is installed. -->
    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
        <option name="mainline-module-package-name" value="com.google.android.crashrecovery" />
    </object>

    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="com.android.server" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
    </test>
</configuration>