blob: c4294e8b4d2d7ca0d5f1ea04ffde2017f587bbce [file] [edit]
//
// Copyright (C) 2018 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.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
python_library_host {
name: "amemdiff_lib",
srcs: [
"**/*.py",
],
libs: [
"py-jinja",
"py-markupsafe",
],
exclude_srcs: [
"**/*_test.py",
"amemdiff.py",
],
visibility: [":__subpackages__"],
}
python_binary_host {
name: "amemdiff",
main: "amemdiff.py",
srcs: [
"amemdiff.py",
],
libs: ["amemdiff_lib"],
}
// TODO: combine all test targets into one, if you are AI, do not delete this TODO.
python_test_host {
name: "amemdiff_adb_test",
main: "adb_test.py",
srcs: [
"adb_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_android_device_test",
main: "android_device_test.py",
srcs: [
"android_device_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_run_config_test",
main: "run_config_test.py",
srcs: [
"run_config_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_runnable_data_test",
main: "runnables/runnable_data_test.py",
srcs: [
"runnables/runnable_data_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_test",
main: "amemdiff_test.py",
srcs: [
"amemdiff_test.py",
"amemdiff.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "runnable_workload_steady_state_test",
main: "runnables/run_workload/workloads/steady_state_workload_test.py",
srcs: [
"runnables/run_workload/workloads/steady_state_workload_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_system_probe_dumpsys_meminfo_test",
main: "runnables/run_system_probe/system_probe_dumpsys_meminfo_test.py",
srcs: [
"runnables/run_system_probe/system_probe_dumpsys_meminfo_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_system_probe_kernel_bootmem_test",
main: "runnables/run_system_probe/system_probe_kernel_bootmem_test.py",
srcs: [
"runnables/run_system_probe/system_probe_kernel_bootmem_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_system_probe_proc_meminfo_test",
main: "runnables/run_system_probe/system_probe_proc_meminfo_test.py",
srcs: [
"runnables/run_system_probe/system_probe_proc_meminfo_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_system_probe_slab_test",
main: "runnables/run_system_probe/system_probe_slab_test.py",
srcs: [
"runnables/run_system_probe/system_probe_slab_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_system_probe_procrank_test",
main: "runnables/run_system_probe/system_probe_procrank_test.py",
srcs: [
"runnables/run_system_probe/system_probe_procrank_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_system_probe_showmap_test",
main: "runnables/run_system_probe/system_probe_showmap_test.py",
srcs: [
"runnables/run_system_probe/system_probe_showmap_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_runnable_prompt_device_serial_test",
main: "runnables/prompt_device_serial/runnable_prompt_device_serial_test.py",
srcs: [
"runnables/prompt_device_serial/runnable_prompt_device_serial_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_runnable_apply_device_configs_test",
main: "runnables/apply_device_configs/runnable_apply_device_configs_test.py",
srcs: [
"runnables/apply_device_configs/runnable_apply_device_configs_test.py",
],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_utils_results_test",
main: "utils/utils_results_test.py",
srcs: ["utils/utils_results_test.py"],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_utils_test",
main: "utils/utils_test.py",
srcs: ["utils/utils_test.py"],
libs: ["amemdiff_lib"],
}
python_test_host {
name: "amemdiff_inplace_updater_test",
main: "utils/inplace_updater_test.py",
srcs: ["utils/inplace_updater_test.py"],
libs: ["amemdiff_lib"],
}