unplugged-system/device/google/cuttlefish/host/commands/cvd/unittests/server/Android.bp

98 lines
2.2 KiB
Plaintext

//
// Copyright (C) 2023 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"],
}
cc_library_host_static {
name: "cvd_test_cmd_utils",
srcs: [
"cmd_runner.cpp",
"utils.cpp",
],
defaults: ["cvd_lib_defaults"],
}
cc_test_host {
name: "cvd_server_test",
srcs: [
"autogen_ids_test.cpp",
"basic_test.cpp",
"clear_test.cpp",
"help_test.cpp",
"instance_ids_test.cpp",
],
static_libs: [
"cvd_test_cmd_utils",
],
test_options: {
unit_test: false,
},
defaults: ["cvd_and_fetch_cvd_defaults"],
}
cc_test_host {
name: "cvd_acloud_local_test",
srcs: [
"local_instance_helper.cpp",
"local_instance_test.cpp",
],
static_libs: [
"cvd_test_cmd_utils",
],
test_options: {
unit_test: false,
},
defaults: ["cvd_and_fetch_cvd_defaults"],
}
cc_test_host {
name: "cvd_flag_collector_test",
srcs: [
"collect_flags_test.cpp",
],
static_libs: [
"cvd_test_cmd_utils",
],
test_options: {
unit_test: false,
},
defaults: ["cvd_and_fetch_cvd_defaults"],
}
cc_test_host {
name: "cvd_frontline_parser_test",
srcs: [
"frontline_parser_test.cpp",
],
test_options: {
unit_test: true,
},
defaults: ["cvd_and_fetch_cvd_defaults"],
}
cc_test_host {
name: "cvd_utils_test",
srcs: [
"common_utils_helper.cpp",
"common_utils_test.cpp",
],
test_options: {
unit_test: false,
},
defaults: ["cvd_and_fetch_cvd_defaults"],
}