1// 2// Copyright (C) 2023 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_library_host_static { 21 name: "cvd_test_cmd_utils", 22 srcs: [ 23 "cmd_runner.cpp", 24 "utils.cpp", 25 ], 26 defaults: ["cvd_lib_defaults"], 27} 28 29cc_test_host { 30 name: "cvd_server_test", 31 srcs: [ 32 "autogen_ids_test.cpp", 33 "basic_test.cpp", 34 "clear_test.cpp", 35 "help_test.cpp", 36 "instance_ids_test.cpp", 37 ], 38 static_libs: [ 39 "cvd_test_cmd_utils", 40 ], 41 test_options: { 42 unit_test: false, 43 }, 44 defaults: ["cvd_and_fetch_cvd_defaults"], 45} 46 47cc_test_host { 48 name: "cvd_acloud_local_test", 49 srcs: [ 50 "local_instance_helper.cpp", 51 "local_instance_test.cpp", 52 ], 53 static_libs: [ 54 "cvd_test_cmd_utils", 55 ], 56 test_options: { 57 unit_test: false, 58 }, 59 defaults: ["cvd_and_fetch_cvd_defaults"], 60} 61 62cc_test_host { 63 name: "cvd_flag_collector_test", 64 srcs: [ 65 "collect_flags_test.cpp", 66 ], 67 static_libs: [ 68 "cvd_test_cmd_utils", 69 ], 70 test_options: { 71 unit_test: false, 72 }, 73 defaults: ["cvd_and_fetch_cvd_defaults"], 74} 75 76cc_test_host { 77 name: "cvd_frontline_parser_test", 78 srcs: [ 79 "frontline_parser_test.cpp", 80 ], 81 test_options: { 82 unit_test: true, 83 }, 84 defaults: ["cvd_and_fetch_cvd_defaults"], 85} 86 87cc_test_host { 88 name: "cvd_utils_test", 89 srcs: [ 90 "common_utils_helper.cpp", 91 "common_utils_test.cpp", 92 ], 93 test_options: { 94 unit_test: false, 95 }, 96 defaults: ["cvd_and_fetch_cvd_defaults"], 97} 98