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

Commit cca00375 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Extract out test package for Platinum tests

To avoid the test running from trying to setup any non-platinum Flicker Service tests when running the platinum tests which filters out the tests from all the test in the test package.

Bug: 290795722
Test: ABTD
Change-Id: Ie94d7f47f50f73ee515b67275dd88dc493737a6b
parent ecfd3ee5
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -68,11 +68,23 @@ filegroup {
    ],
}

filegroup {
    name: "WMShellFlickerServicePlatinumTests-src",
    srcs: [
        "src/com/android/wm/shell/flicker/service/*/platinum/**/*.kt",
        "src/com/android/wm/shell/flicker/service/*/scenarios/**/*.kt",
        "src/com/android/wm/shell/flicker/service/common/**/*.kt",
    ],
}

filegroup {
    name: "WMShellFlickerServiceTests-src",
    srcs: [
        "src/com/android/wm/shell/flicker/service/**/*.kt",
    ],
    exclude_srcs: [
        "src/com/android/wm/shell/flicker/service/*/platinum/**/*.kt",
    ],
}

java_library {
@@ -143,6 +155,7 @@ android_test {
        ":WMShellFlickerTestsSplitScreenGroup2-src",
        ":WMShellFlickerTestsSplitScreenBase-src",
        ":WMShellFlickerServiceTests-src",
        ":WMShellFlickerServicePlatinumTests-src",
    ],
}

@@ -210,3 +223,15 @@ android_test {
        ":WMShellFlickerServiceTests-src",
    ],
}

android_test {
    name: "WMShellFlickerServicePlatinumTests",
    defaults: ["WMShellFlickerTestsDefault"],
    additional_manifests: ["manifests/AndroidManifestService.xml"],
    package_name: "com.android.wm.shell.flicker.service",
    instrumentation_target_package: "com.android.wm.shell.flicker.service",
    srcs: [
        ":WMShellFlickerTestsBase-src",
        ":WMShellFlickerServicePlatinumTests-src",
    ],
}
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.wm.shell.flicker.service
package com.android.wm.shell.flicker.service.common

import android.app.Instrumentation
import android.platform.test.rule.NavigationModeRule
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ import android.tools.device.traces.parsers.WindowManagerStateHelper
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import com.android.launcher3.tapl.LauncherInstrumentation
import com.android.wm.shell.flicker.service.Utils
import com.android.wm.shell.flicker.service.common.Utils
import com.android.wm.shell.flicker.utils.SplitScreenUtils
import org.junit.After
import org.junit.Before
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ import android.tools.device.traces.parsers.WindowManagerStateHelper
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import com.android.launcher3.tapl.LauncherInstrumentation
import com.android.wm.shell.flicker.service.Utils
import com.android.wm.shell.flicker.service.common.Utils
import com.android.wm.shell.flicker.utils.SplitScreenUtils
import org.junit.After
import org.junit.Before
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ import android.tools.device.traces.parsers.WindowManagerStateHelper
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import com.android.launcher3.tapl.LauncherInstrumentation
import com.android.wm.shell.flicker.service.Utils
import com.android.wm.shell.flicker.service.common.Utils
import com.android.wm.shell.flicker.utils.SplitScreenUtils
import org.junit.After
import org.junit.Before
Loading