https for buildserver.labs.intellij.net
[idea/adt-tools-base.git] / fakeandroid / fakeandroid.bzl
1 def fake_android_test(name, srcs=[], deps = [], data = [], runtime_deps = [], tags = [], size = "small", jvm_flags = []):
2     native.java_test(
3       name = name,
4       runtime_deps = runtime_deps + [
5           "//tools/base/fakeandroid:art-runner",
6           "//tools/base/testutils:tools.testutils",
7       ],
8       deps = deps + [
9           "//tools/base/common:studio.android.sdktools.common",
10           "//tools/base/fakeandroid:app-launcher-dex",
11           "//tools/base/fakeandroid:android-mock-dex",
12           "//tools/base/third_party:junit_junit",
13       ],
14       jvm_flags = jvm_flags + [
15               "-Dtest.suite.jar=" + name + ".jar",
16               "-Dart.location=/prebuilts/tools/linux-x86_64/art/bin/art",
17               "-Dperfa.dex.location=$(location //tools/base/fakeandroid:app-launcher-dex)",
18               "-Dandroid-mock.dex.location=$(location //tools/base/fakeandroid:android-mock-dex)",
19               "-Dart.deps.location=prebuilts/tools/linux-x86_64/art/framework/",
20               "-Dart.boot.location=prebuilts/tools/linux-x86_64/art/framework/x86_64/",
21               "-Dart.lib64.location=prebuilts/tools/linux-x86_64/art/lib64",
22           ],
23       shard_count = 1,
24       test_class = "com.android.testutils.JarTestSuite",
25       visibility = ["//visibility:public"],
26       size = size,
27       data = data + [
28         "//tools/base/fakeandroid:art-runner",
29       ],
30       srcs = srcs,
31       tags = list(depset(tags + ["no_windows", "no_test_mac"])),
32     )