blob: 724bf9cb015bc1fa40ec5ddc459974eb91b39b26 [file] [log] [blame]
load("//tools/adt/idea/android/integration:build_defs.bzl", "INTEGRATION_TEST_GRADLE_VERSION", "INTEGRATION_TEST_SYSTEM_IMAGE")
load("//tools/adt/idea/studio:studio.bzl", "iml_studio_test")
load("//tools/base/bazel:bazel.bzl", "iml_module")
# managed by go/iml_to_build
iml_module(
name = "intellij.android.device-explorer",
srcs = ["src"],
iml_files = ["intellij.android.device-explorer.iml"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"//tools/adt/idea/device-explorer-common:intellij.android.device-explorer-common[module]",
"//tools/adt/idea/device-explorer-files:intellij.android.device-explorer-files[module]",
"//tools/adt/idea/device-explorer-monitor:intellij.android.device-explorer-monitor[module]",
"//tools/base/sdklib:studio.android.sdktools.sdklib[module]",
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"//tools/adt/idea/android-adb:intellij.android.adb[module]",
"//tools/adt/idea/android-common:intellij.android.common[module]",
"//tools/adt/idea/artwork:intellij.android.artwork[module]",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui[module]",
"//tools/base/flags:studio.android.sdktools.flags[module]",
"//tools/base/adblib:studio.android.sdktools.adblib[module]",
"//tools/base/device-provisioner:studio.android.sdktools.device-provisioner[module]",
"//tools/base/ddmlib:studio.android.sdktools.ddmlib[module]",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"//tools/analytics-library/tracker:analytics-tracker[module]",
],
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.device-explorer.tests",
iml_files = ["intellij.android.device-explorer.tests.iml"],
test_class = "com.android.tools.idea.device.explorer.DeviceExplorerTestSuite",
test_data = [
"//prebuilts/studio/jdk/jdk11",
"//prebuilts/studio/sdk:platform-tools",
"//prebuilts/studio/sdk:platforms/latest",
"//tools/adt/idea/android/testData",
],
test_srcs = ["testSrc"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"//tools/adt/idea/device-explorer-common:intellij.android.device-explorer-common[module, test]",
"//tools/adt/idea/device-explorer:intellij.android.device-explorer[module, test]",
"//tools/base/testutils:studio.android.sdktools.testutils[module, test]",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils[module, test]",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework[module, test]",
"//tools/base/fakeadbserver:studio.android.sdktools.fakeadbserver[module, test]",
"//tools/base/adblib:studio.android.sdktools.adblib[module, test]",
"//tools/adt/idea/.idea/libraries:truth[test]",
"//tools/adt/idea/android-common:intellij.android.common[module, test]",
"//tools/base/device-provisioner:studio.android.sdktools.device-provisioner[module, test]",
"//tools/adt/idea/project-system:intellij.android.projectSystem[module, test]",
],
)
# managed by go/iml_to_build
iml_module(
name = "intellij.android.device-explorer.integration.tests",
enable_tests = False,
iml_files = ["intellij.android.device-explorer.integration.tests.iml"],
test_srcs = ["integration"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"//tools/adt/idea/device-explorer:intellij.android.device-explorer[module, test]",
"//tools/adt/idea/as-driver:as-driver.utils[module, test]",
"//tools/adt/idea/.idea/libraries:truth[test]",
],
)
iml_studio_test(
name = "DeviceExplorerIntegrationTest",
timeout = "long",
data = [
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:emulator",
"//prebuilts/studio/sdk:platform-tools",
"//tools/adt/idea/android/integration:buildproject_deps",
"//tools/adt/idea/android/integration:minapp",
INTEGRATION_TEST_GRADLE_VERSION,
INTEGRATION_TEST_SYSTEM_IMAGE,
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.4.1",
"@maven//:org.jetbrains.markdown_0.2.1",
],
module = ":intellij.android.device-explorer.integration.tests",
tags_linux = ["block-network"],
tags_mac = [],
tags_windows = [
"block-network",
"manual", # RBE environment doesn't allow emulation (requires nested virtualization).
],
test_class = "testSrc.com.android.tools.idea.device.explorer.DeviceExplorerIntegrationTest",
)