2017-05-10 23:37:17 +02:00
|
|
|
// Copyright (C) 2017 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "adb_defaults",
|
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Wextra",
|
|
|
|
"-Werror",
|
2018-06-01 20:31:38 +02:00
|
|
|
"-Wexit-time-destructors",
|
2018-01-02 21:01:43 +01:00
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-Wno-missing-field-initializers",
|
|
|
|
"-Wvla",
|
|
|
|
],
|
|
|
|
|
2018-02-28 00:49:23 +01:00
|
|
|
use_version_lib: true,
|
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
compile_multilib: "first",
|
|
|
|
product_variables: {
|
|
|
|
debuggable: {
|
|
|
|
cflags: [
|
|
|
|
"-DALLOW_ADBD_ROOT",
|
|
|
|
"-DALLOW_ADBD_DISABLE_VERITY",
|
|
|
|
"-DALLOW_ADBD_NO_AUTH",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
target: {
|
|
|
|
android: {
|
2018-10-13 01:37:31 +02:00
|
|
|
cflags: [
|
|
|
|
"-DADB_HOST=0",
|
|
|
|
"-Wthread-safety",
|
|
|
|
],
|
2018-01-02 21:01:43 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
host: {
|
|
|
|
cflags: ["-DADB_HOST=1"],
|
|
|
|
},
|
|
|
|
|
|
|
|
darwin: {
|
|
|
|
host_ldlibs: [
|
|
|
|
"-lpthread",
|
|
|
|
"-framework CoreFoundation",
|
|
|
|
"-framework IOKit",
|
|
|
|
"-lobjc",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
windows: {
|
|
|
|
cflags: [
|
|
|
|
// Define windows.h and tchar.h Unicode preprocessor symbols so that
|
|
|
|
// CreateFile(), _tfopen(), etc. map to versions that take wchar_t*, breaking the
|
|
|
|
// build if you accidentally pass char*. Fix by calling like:
|
|
|
|
// std::wstring path_wide;
|
|
|
|
// if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ }
|
|
|
|
// CreateFileW(path_wide.c_str());
|
|
|
|
"-DUNICODE=1",
|
|
|
|
"-D_UNICODE=1",
|
|
|
|
|
2018-12-03 18:02:18 +01:00
|
|
|
// Unlike on Linux, -std=gnu++ doesn't set _GNU_SOURCE on Windows.
|
2018-01-02 21:01:43 +01:00
|
|
|
"-D_GNU_SOURCE",
|
2018-03-23 21:03:28 +01:00
|
|
|
|
|
|
|
// MinGW hides some things behind _POSIX_SOURCE.
|
|
|
|
"-D_POSIX_SOURCE",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
2018-03-23 23:37:20 +01:00
|
|
|
|
|
|
|
host_ldlibs: [
|
|
|
|
"-lws2_32",
|
|
|
|
"-lgdi32",
|
|
|
|
"-luserenv",
|
|
|
|
],
|
2018-01-02 21:01:43 +01:00
|
|
|
},
|
2018-06-01 20:31:38 +02:00
|
|
|
|
|
|
|
not_windows: {
|
|
|
|
cflags: [
|
|
|
|
"-Wthread-safety",
|
|
|
|
],
|
|
|
|
},
|
2018-01-02 21:01:43 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
// libadb
|
|
|
|
// =========================================================
|
|
|
|
// These files are compiled for both the host and the device.
|
|
|
|
libadb_srcs = [
|
|
|
|
"adb.cpp",
|
|
|
|
"adb_io.cpp",
|
|
|
|
"adb_listeners.cpp",
|
|
|
|
"adb_trace.cpp",
|
2018-05-25 07:54:50 +02:00
|
|
|
"adb_unique_fd.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
"adb_utils.cpp",
|
|
|
|
"fdevent.cpp",
|
|
|
|
"services.cpp",
|
|
|
|
"sockets.cpp",
|
|
|
|
"socket_spec.cpp",
|
|
|
|
"sysdeps/errno.cpp",
|
|
|
|
"transport.cpp",
|
2018-04-06 01:16:04 +02:00
|
|
|
"transport_fd.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
"transport_local.cpp",
|
|
|
|
"transport_usb.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
libadb_posix_srcs = [
|
|
|
|
"sysdeps_unix.cpp",
|
|
|
|
"sysdeps/posix/network.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
libadb_test_srcs = [
|
|
|
|
"adb_io_test.cpp",
|
|
|
|
"adb_listeners_test.cpp",
|
|
|
|
"adb_utils_test.cpp",
|
|
|
|
"fdevent_test.cpp",
|
|
|
|
"socket_spec_test.cpp",
|
|
|
|
"socket_test.cpp",
|
|
|
|
"sysdeps_test.cpp",
|
|
|
|
"sysdeps/stat_test.cpp",
|
|
|
|
"transport_test.cpp",
|
2018-04-03 23:37:11 +02:00
|
|
|
"types_test.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
cc_library_host_static {
|
|
|
|
name: "libadb_host",
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
|
|
|
|
srcs: libadb_srcs + [
|
|
|
|
"client/auth.cpp",
|
|
|
|
"client/usb_libusb.cpp",
|
|
|
|
"client/usb_dispatch.cpp",
|
|
|
|
"client/transport_mdns.cpp",
|
2018-01-29 17:30:36 +01:00
|
|
|
"client/fastdeploy.cpp",
|
|
|
|
"client/fastdeploycallbacks.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
|
|
|
|
2018-08-29 23:58:02 +02:00
|
|
|
generated_headers: ["platform_tools_version"],
|
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
target: {
|
|
|
|
linux: {
|
|
|
|
srcs: ["client/usb_linux.cpp"],
|
|
|
|
},
|
|
|
|
darwin: {
|
|
|
|
srcs: ["client/usb_osx.cpp"],
|
|
|
|
},
|
|
|
|
|
|
|
|
not_windows: {
|
|
|
|
srcs: libadb_posix_srcs,
|
|
|
|
},
|
|
|
|
windows: {
|
|
|
|
enabled: true,
|
|
|
|
srcs: [
|
|
|
|
"client/usb_windows.cpp",
|
|
|
|
"sysdeps_win32.cpp",
|
|
|
|
"sysdeps/win32/errno.cpp",
|
|
|
|
"sysdeps/win32/stat.cpp",
|
|
|
|
],
|
|
|
|
shared_libs: ["AdbWinApi"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcrypto",
|
|
|
|
"libdiagnose_usb",
|
|
|
|
"libmdnssd",
|
|
|
|
"libusb",
|
2018-09-13 19:00:25 +02:00
|
|
|
"libandroidfw",
|
|
|
|
"libziparchive",
|
|
|
|
"libz",
|
|
|
|
"libutils",
|
|
|
|
"liblog",
|
|
|
|
"libcutils",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_test_host {
|
|
|
|
name: "adb_test",
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
srcs: libadb_test_srcs,
|
|
|
|
static_libs: [
|
|
|
|
"libadb_host",
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcrypto",
|
|
|
|
"libmdnssd",
|
|
|
|
"libdiagnose_usb",
|
|
|
|
"libusb",
|
|
|
|
],
|
2018-03-23 23:37:20 +01:00
|
|
|
|
|
|
|
target: {
|
|
|
|
windows: {
|
|
|
|
enabled: true,
|
|
|
|
shared_libs: ["AdbWinApi"],
|
|
|
|
},
|
|
|
|
},
|
2018-01-02 21:01:43 +01:00
|
|
|
}
|
|
|
|
|
2018-04-04 20:27:24 +02:00
|
|
|
cc_benchmark {
|
|
|
|
name: "adb_benchmark",
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
|
|
|
|
srcs: ["transport_benchmark.cpp"],
|
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
static_libs: [
|
|
|
|
"libadbd",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
host: {
|
|
|
|
static_libs: [
|
|
|
|
"libadb_host",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcrypto",
|
|
|
|
"libdiagnose_usb",
|
|
|
|
"liblog",
|
|
|
|
"libusb",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
cc_binary_host {
|
|
|
|
name: "adb",
|
|
|
|
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"client/adb_client.cpp",
|
|
|
|
"client/bugreport.cpp",
|
|
|
|
"client/commandline.cpp",
|
|
|
|
"client/file_sync_client.cpp",
|
|
|
|
"client/main.cpp",
|
|
|
|
"client/console.cpp",
|
2018-01-29 17:30:36 +01:00
|
|
|
"client/adb_install.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
"client/line_printer.cpp",
|
|
|
|
"shell_service_protocol.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"libadb_host",
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcrypto",
|
|
|
|
"libdiagnose_usb",
|
|
|
|
"liblog",
|
|
|
|
"libmdnssd",
|
|
|
|
"libusb",
|
2018-09-13 19:00:25 +02:00
|
|
|
"libandroidfw",
|
|
|
|
"libziparchive",
|
|
|
|
"libz",
|
|
|
|
"libutils",
|
|
|
|
"liblog",
|
|
|
|
"libcutils",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
stl: "libc++_static",
|
|
|
|
|
|
|
|
// Don't add anything here, we don't want additional shared dependencies
|
|
|
|
// on the host adb tool, and shared libraries that link against libc++
|
|
|
|
// will violate ODR
|
|
|
|
shared_libs: [],
|
|
|
|
|
2018-08-24 12:46:45 +02:00
|
|
|
required: [
|
|
|
|
"deploypatchgenerator",
|
|
|
|
],
|
|
|
|
|
2018-11-20 04:11:35 +01:00
|
|
|
// Archive adb, adb.exe.
|
|
|
|
dist: {
|
|
|
|
targets: [
|
|
|
|
"dist_files",
|
|
|
|
"sdk",
|
|
|
|
"win_sdk",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
target: {
|
|
|
|
darwin: {
|
|
|
|
cflags: [
|
|
|
|
"-Wno-sizeof-pointer-memaccess",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
windows: {
|
|
|
|
enabled: true,
|
|
|
|
ldflags: ["-municode"],
|
|
|
|
shared_libs: ["AdbWinApi"],
|
|
|
|
required: [
|
|
|
|
"AdbWinUsbApi",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2018-07-31 05:45:27 +02:00
|
|
|
// libadbd_core contains the common sources to build libadbd and libadbd_services.
|
2018-01-02 21:01:43 +01:00
|
|
|
cc_library_static {
|
2018-07-31 05:45:27 +02:00
|
|
|
name: "libadbd_core",
|
2018-01-02 21:01:43 +01:00
|
|
|
defaults: ["adb_defaults"],
|
2018-05-24 07:11:00 +02:00
|
|
|
recovery_available: true,
|
2018-01-02 21:01:43 +01:00
|
|
|
|
2018-07-31 05:45:27 +02:00
|
|
|
// libminadbd wants both, as it's used to build native tests.
|
2018-01-02 21:01:43 +01:00
|
|
|
compile_multilib: "both",
|
2018-07-31 05:45:27 +02:00
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
srcs: libadb_srcs + libadb_posix_srcs + [
|
|
|
|
"daemon/auth.cpp",
|
|
|
|
"daemon/jdwp_service.cpp",
|
adbd: implement a nonblocking USB Connection.
Implement a Connection that implements a nonblocking interface to
functionfs, to replace the existing implementation that uses two
threads that loop and call read and write respectively. The existing
implementation is vulnerable to a race condition that can occur when a
connection is terminated, where one thread can notice failure and
complete reinitialization of the USB endpoints before the other thread
noticed anything went wrong, resulting in either the first packet
coming from the other end disappearing in to the void, or the other end
getting a packet of garbage.
As a side benefit, this improves performance on walleye from:
push 100MiB: 10 runs: median 49.48 MiB/s, mean 50.00 MiB/s, stddev: 2.77 MiB/s
pull 100MiB: 10 runs: median 75.82 MiB/s, mean 76.18 MiB/s, stddev: 6.60 MiB/s
to:
push 100MiB: 10 runs: median 73.90 MiB/s, mean 73.51 MiB/s, stddev: 5.26 MiB/s
pull 100MiB: 10 runs: median 105.90 MiB/s, mean 107.19 MiB/s, stddev: 6.10 MiB/s
Test: python test_device.py
Change-Id: I9b77c1057965edfef739ed9736e5d76613adf60a
2018-10-12 01:33:05 +02:00
|
|
|
"daemon/usb.cpp",
|
2018-10-08 23:20:29 +02:00
|
|
|
"daemon/usb_ffs.cpp",
|
2018-10-08 23:42:19 +02:00
|
|
|
"daemon/usb_legacy.cpp",
|
2018-07-31 05:45:27 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"daemon/include",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
|
|
|
|
2018-08-29 23:58:02 +02:00
|
|
|
generated_headers: ["platform_tools_version"],
|
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
static_libs: [
|
|
|
|
"libdiagnose_usb",
|
|
|
|
"libqemu_pipe",
|
|
|
|
],
|
2018-05-08 00:14:47 +02:00
|
|
|
|
2018-07-31 05:45:27 +02:00
|
|
|
shared_libs: [
|
|
|
|
"libasyncio",
|
|
|
|
"libbase",
|
|
|
|
"libcrypto",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcutils",
|
|
|
|
"liblog",
|
2018-05-08 00:14:47 +02:00
|
|
|
],
|
2018-01-02 21:01:43 +01:00
|
|
|
}
|
|
|
|
|
2018-07-31 05:45:27 +02:00
|
|
|
cc_library {
|
|
|
|
name: "libadbd_services",
|
2018-01-02 21:01:43 +01:00
|
|
|
defaults: ["adb_defaults"],
|
2018-05-24 07:11:00 +02:00
|
|
|
recovery_available: true,
|
2018-07-31 05:45:27 +02:00
|
|
|
compile_multilib: "both",
|
2018-03-06 21:57:27 +01:00
|
|
|
|
2018-01-02 21:01:43 +01:00
|
|
|
srcs: [
|
|
|
|
"daemon/file_sync_service.cpp",
|
|
|
|
"daemon/framebuffer_service.cpp",
|
2018-07-31 05:45:27 +02:00
|
|
|
"daemon/mdns.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
"daemon/remount_service.cpp",
|
2018-07-26 03:15:52 +02:00
|
|
|
"daemon/services.cpp",
|
2018-07-31 05:45:27 +02:00
|
|
|
"daemon/set_verity_enable_state_service.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
"daemon/shell_service.cpp",
|
|
|
|
"shell_service_protocol.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-D_GNU_SOURCE",
|
|
|
|
"-Wno-deprecated-declarations",
|
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
2018-07-31 05:45:27 +02:00
|
|
|
"libadbd_core",
|
2018-01-02 21:01:43 +01:00
|
|
|
"libavb_user",
|
2018-07-31 05:45:27 +02:00
|
|
|
"libdiagnose_usb",
|
|
|
|
"libqemu_pipe",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libasyncio",
|
|
|
|
"libbase",
|
2018-01-02 21:01:43 +01:00
|
|
|
"libbootloader_message",
|
|
|
|
"libcrypto",
|
2018-07-31 05:45:27 +02:00
|
|
|
"libcrypto_utils",
|
|
|
|
"libcutils",
|
|
|
|
"libext4_utils",
|
2018-01-02 21:01:43 +01:00
|
|
|
"libfec",
|
|
|
|
"libfs_mgr",
|
|
|
|
"liblog",
|
|
|
|
"libmdnssd",
|
2018-09-13 23:20:28 +02:00
|
|
|
"libselinux",
|
2018-07-31 05:45:27 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_library {
|
|
|
|
name: "libadbd",
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
recovery_available: true,
|
|
|
|
|
|
|
|
// Avoid getting duplicate symbol of android::build::GetBuildNumber().
|
|
|
|
use_version_lib: false,
|
|
|
|
|
|
|
|
// libminadbd wants both, as it's used to build native tests.
|
|
|
|
compile_multilib: "both",
|
|
|
|
|
|
|
|
// libadbd doesn't build any additional source, but to expose libadbd_core as a shared library.
|
|
|
|
whole_static_libs: [
|
|
|
|
"libadbd_core",
|
|
|
|
],
|
2018-01-02 21:01:43 +01:00
|
|
|
|
2018-07-31 05:45:27 +02:00
|
|
|
shared_libs: [
|
|
|
|
"libadbd_services",
|
|
|
|
"libasyncio",
|
2018-01-02 21:01:43 +01:00
|
|
|
"libbase",
|
2018-07-31 05:45:27 +02:00
|
|
|
"libcrypto",
|
|
|
|
"libcrypto_utils",
|
2018-01-02 21:01:43 +01:00
|
|
|
"libcutils",
|
2018-07-31 05:45:27 +02:00
|
|
|
"liblog",
|
|
|
|
],
|
|
|
|
|
|
|
|
export_include_dirs: [
|
|
|
|
"daemon/include",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "adbd",
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
recovery_available: true,
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"daemon/main.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-D_GNU_SOURCE",
|
|
|
|
"-Wno-deprecated-declarations",
|
|
|
|
],
|
|
|
|
|
|
|
|
strip: {
|
|
|
|
keep_symbols: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libadbd",
|
|
|
|
"libadbd_services",
|
|
|
|
"libbase",
|
|
|
|
"libcap",
|
|
|
|
"libcrypto",
|
|
|
|
"libcutils",
|
|
|
|
"liblog",
|
|
|
|
"libminijail",
|
|
|
|
"libselinux",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_test {
|
|
|
|
name: "adbd_test",
|
|
|
|
defaults: ["adb_defaults"],
|
|
|
|
srcs: libadb_test_srcs + [
|
2018-07-26 03:15:52 +02:00
|
|
|
"daemon/services.cpp",
|
2018-01-02 21:01:43 +01:00
|
|
|
"daemon/shell_service.cpp",
|
|
|
|
"daemon/shell_service_test.cpp",
|
|
|
|
"shell_service_protocol.cpp",
|
|
|
|
"shell_service_protocol_test.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"libadbd",
|
|
|
|
"libbase",
|
2018-07-26 03:15:52 +02:00
|
|
|
"libbootloader_message",
|
2018-01-02 21:01:43 +01:00
|
|
|
"libcutils",
|
|
|
|
"libcrypto_utils",
|
|
|
|
"libcrypto",
|
|
|
|
"libdiagnose_usb",
|
|
|
|
"liblog",
|
|
|
|
"libusb",
|
|
|
|
"libmdnssd",
|
2018-05-29 09:41:30 +02:00
|
|
|
"libselinux",
|
2018-01-02 21:01:43 +01:00
|
|
|
],
|
2018-04-28 01:12:06 +02:00
|
|
|
test_suites: ["device-tests"],
|
2018-01-02 21:01:43 +01:00
|
|
|
}
|
|
|
|
|
2018-08-08 21:08:50 +02:00
|
|
|
python_test_host {
|
2018-02-17 02:58:14 +01:00
|
|
|
name: "adb_integration_test_adb",
|
|
|
|
main: "test_adb.py",
|
|
|
|
srcs: [
|
|
|
|
"test_adb.py",
|
|
|
|
],
|
2018-08-08 21:08:50 +02:00
|
|
|
test_config: "adb_integration_test_adb.xml",
|
|
|
|
test_suites: ["general-tests"],
|
2018-02-17 02:58:14 +01:00
|
|
|
version: {
|
|
|
|
py2: {
|
2018-08-07 23:31:17 +02:00
|
|
|
enabled: false,
|
2018-02-17 02:58:14 +01:00
|
|
|
},
|
|
|
|
py3: {
|
2018-08-07 23:31:17 +02:00
|
|
|
enabled: true,
|
2018-02-17 02:58:14 +01:00
|
|
|
},
|
2017-05-10 23:37:17 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2018-10-12 22:48:14 +02:00
|
|
|
python_test_host {
|
2018-02-17 02:58:14 +01:00
|
|
|
name: "adb_integration_test_device",
|
|
|
|
main: "test_device.py",
|
|
|
|
srcs: [
|
|
|
|
"test_device.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"adb_py",
|
|
|
|
],
|
2018-10-12 22:48:14 +02:00
|
|
|
test_config: "adb_integration_test_device.xml",
|
|
|
|
test_suites: ["general-tests"],
|
2018-02-17 02:58:14 +01:00
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2017-05-10 23:37:17 +02:00
|
|
|
},
|
|
|
|
}
|