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

Commit d8e05c45 authored by Thomas Girardier's avatar Thomas Girardier Committed by Automerger Merge Worker
Browse files

Merge "[PTS-bot] Add PTS-bot configuration for MTS" am: 5dec355f

parents d4230f73 5dec355f
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
@@ -45,16 +45,35 @@ android_test_helper_app {
    optimize: {
        enabled: false,
    },

    test_suites: [
        "device-tests",
        "mts-bluetooth",
    ],
}

android_test {
    name: "pts-bot",
    required: ["PandoraServer"],
    test_config: "configs/PtsBotTest.xml",
    data: ["configs/pts_bot_tests_config.json", ":mmi2grpc"],
    data: [
        "configs/pts_bot_tests_config.json",
        ":mmi2grpc"
    ],
    test_suites: ["device-tests"],
}

android_test {
    name: "pts-bot-mts",
    required: ["PandoraServer"],
    test_config: "configs/PtsBotTestMts.xml",
    data: [
        "configs/pts_bot_tests_config.json",
        ":mmi2grpc"
    ],
    test_suites: ["mts-bluetooth"],
}

java_library {
    name: "pandora-grpc-java",
    visibility: ["//visibility:private"],
+39 −0
Original line number Diff line number Diff line
<configuration description="Runs PTS-bot tests in MTS">
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="test-file-name" value="PandoraServer.apk" />
        <option name="install-arg" value="-r" />
        <option name="install-arg" value="-g" />
    </target_preparer>

    <target_preparer class="com.android.tradefed.targetprep.InstallApkSetup">
        <option name="post-install-cmd" value="am instrument -e Debug false com.android.pandora/.Main" />
    </target_preparer>

    <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer">
        <option name="dep-module" value="grpcio" />
        <option name="dep-module" value="protobuf==3.20.1" />
        <option name="dep-module" value="scipy" />
    </target_preparer>

    <test class="com.android.tradefed.testtype.pandora.PtsBotTest" >
        <!-- mmi2grpc is contained inside testcases folder -->
        <option name="mmi2grpc" value="testcases" />
        <option name="tests-config-file" value="pts_bot_tests_config.json" />
        <option name="physical" value="false" />
        <option name="profile" value="A2DP/SRC" />
        <option name="profile" value="AVDTP/SRC" />
        <option name="profile" value="GATT/CL/GAC" />
        <option name="profile" value="HFP/AG/DIS" />
        <option name="profile" value="HFP/AG/HFI" />
        <option name="profile" value="HFP/AG/SLC" />
        <option name="profile" value="HFP/AG/TCA" />
        <option name="profile" value="SDP/SR" />
        <option name="profile" value="SM/CEN/EKS" />
        <option name="profile" value="SM/CEN/JW" />
    </test>

    <object type="module_controller"
            class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
        <option name="mainline-module-package-name" value="com.android.bluetooth" />
    </object>
</configuration>