1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#
# Description:
# Tests for DroidDriver test framework
licenses(["notice"]) # Apache License 2.0, Google-owned
filegroup(
name = "opensource_filegroup",
srcs = glob(["src/**/*.java"]) + ["AndroidManifest.xml"],
visibility = ["//third_party/java_src/android_libs/droiddriver/opensource:__pkg__"],
)
android_resources(
name = "resources",
custom_package = "com.google.android.apps.common.testing.ui.testapp.tests",
inline_constants = 0,
manifest = "AndroidManifest.xml",
resources = glob(["res/**"]),
resources_dir = "res",
)
android_library(
name = "resource_compiletime",
srcs = [":resources"],
neverlink = 1,
)
# Common android test library, containing:
# project under test library and resources compile-time targets, and
# test project dependencies.
android_library(
name = "test_lib",
srcs = [":resources"],
resources = ":resources",
deps = [
"//third_party/java/android_libs/droiddriver",
"//third_party/java_src/android_libs/droiddriver/samples/testapp:test_lib",
],
)
android_test(
name = "LocalAttachedTests",
size = "medium",
srcs = glob(
["src/**/*.java"],
),
args = [
"--device_broker_type=LOCAL_ADB_SERVER",
],
resources = ":resources",
shard_count = 1,
tags = [
"local",
"manual",
"notap",
],
# unused - actually we used whatever we're attached to.
target_devices = ["//tools/android/emulated_devices/generic_phone:android_7_arm"],
deps = [
":test_lib",
"//third_party/java_src/android_libs/droiddriver/samples/testapp",
],
)
|