| load("//tools/adt/idea/android/integration:build_defs.bzl", "INTEGRATION_TEST_GRADLE_VERSION") |
| load("//tools/base/bazel:bazel.bzl", "iml_module", "iml_test") |
| load("//tools/base/bazel:maven.bzl", "maven_repository") |
| |
| common_data = [ |
| ":sdkindexapp", |
| ":sdkindexproject_deps", |
| ":sdkindexsnapshot", |
| "//prebuilts/studio/sdk:build-tools/latest", |
| INTEGRATION_TEST_GRADLE_VERSION, |
| ] |
| |
| old_project_app_data = [ |
| ":oldprojectapp", |
| ":oldprojectapp_deps", |
| "//prebuilts/studio/jdk/jdk11:jdk_runtime_files", |
| "//prebuilts/studio/sdk:build-tools/latest", |
| "//tools/base/build-system:gradle-distrib-6.7.1", |
| ] |
| |
| # managed by go/iml_to_build |
| iml_module( |
| name = "intellij.android.projectSystem.integration.tests", |
| enable_tests = False, |
| iml_files = ["intellij.android.projectSystem.integration.tests.iml"], |
| # do not sort: must match IML order |
| test_deps = [ |
| "//tools/adt/idea/.idea/libraries:junit4", |
| "@intellij//:intellij-sdk", |
| "//prebuilts/tools/common/m2:junit-4.12", |
| "//tools/adt/idea/as-driver:as-driver.utils", |
| "//tools/base/testutils:studio.android.sdktools.testutils", |
| "//tools/base/common:studio.android.sdktools.common", |
| "//tools/adt/idea/.idea/libraries:truth", |
| "//tools/base/lint:studio.android.sdktools.lint-checks", |
| "//tools/adt/idea/android:intellij.android.core", |
| ], |
| test_srcs = ["testSrc"], |
| visibility = ["//visibility:public"], |
| # do not sort: must match IML order |
| deps = ["@intellij//:com.intellij.java"], |
| ) |
| |
| iml_test( |
| name = "SdkIndexLintTest", |
| timeout = "long", |
| data = common_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SdkIndexLintTest", |
| ) |
| |
| iml_test( |
| name = "SdkIndexLintWithoutNotesTest", |
| timeout = "long", |
| data = common_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SdkIndexLintWithoutNotesTest", |
| ) |
| |
| iml_test( |
| name = "SdkIndexLintWithoutVersionsTest", |
| timeout = "long", |
| data = common_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SdkIndexLintWithoutVersionsTest", |
| ) |
| |
| iml_test( |
| name = "SdkIndexPsdTest", |
| timeout = "long", |
| data = common_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SdkIndexPsdTest", |
| ) |
| |
| iml_test( |
| name = "SdkIndexPsdWithoutNotesTest", |
| timeout = "long", |
| data = common_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SdkIndexPsdWithoutNotesTest", |
| ) |
| |
| iml_test( |
| name = "SdkIndexPsdWithoutVersionsTest", |
| timeout = "long", |
| data = common_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SdkIndexPsdWithoutVersionsTest", |
| ) |
| |
| iml_test( |
| name = "OldProjectAppTest", |
| timeout = "long", |
| data = old_project_app_data, |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.OldProjectAppTest", |
| ) |
| |
| iml_test( |
| name = "GradleTokensTest", |
| timeout = "long", |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags = ["studio-e2e-test"], |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = [ |
| "block-network", |
| "noci:studio-win", # b/401592795 |
| ], |
| test_class = "com.android.tools.idea.projectsystem.gradle.GradleTokensTest", |
| ) |
| |
| iml_test( |
| name = "SnapshotActionTest", |
| timeout = "long", |
| data = [ |
| "//tools/adt/idea/project-system-integration-tests/testData/snapshots:sample-project", |
| "//tools/adt/idea/project-system-integration-tests/testData/snapshots:sample-project_repo", |
| INTEGRATION_TEST_GRADLE_VERSION, |
| ], |
| jvm_flags = ["-Didea.skip.indices.initialization=true"], |
| module = ":intellij.android.projectSystem.integration.tests", |
| tags_linux = ["block-network"], |
| # Commented out due to b/242358149 |
| # tags_mac = ["block-network"], |
| tags_windows = ["block-network"], |
| test_class = "com.android.tools.idea.projectsystem.gradle.SnapshotActionTest", |
| ) |
| |
| maven_repository( |
| name = "sdkindexproject_deps", |
| # keep sorted: for buildifier |
| artifacts = [ |
| "@maven//:com.android.tools.build.gradle_8.1.0", |
| "@maven//:org.jetbrains.kotlin.kotlin-compiler_1.8.10", |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin-api_1.8.10", |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.8.10", |
| "@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.8.10", |
| ], |
| ) |
| |
| maven_repository( |
| name = "oldprojectapp_deps", |
| # keep sorted: for buildifier |
| artifacts = [ |
| "@maven//:com.android.tools.build.gradle_4.2.0", |
| "@maven//:org.jetbrains.kotlin.kotlin-compiler_1.7.20", |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin-api_1.7.20", |
| "@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.7.20", |
| "@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.7.20", |
| "@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.4.1", |
| "@maven//:org.jetbrains.markdown_0.2.1", |
| ], |
| ) |
| |
| filegroup( |
| name = "sdkindexapp", |
| srcs = glob(["testData/sdkindexapp/**"]), |
| ) |
| |
| filegroup( |
| name = "sdkindexsnapshot", |
| srcs = glob(["testData/snapshot/**"]), |
| ) |
| |
| filegroup( |
| name = "oldprojectapp", |
| srcs = glob(["testData/oldprojectapp/**"]), |
| ) |