1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/test.gni") 15import("//foundation/aafwk/standard/aafwk.gni") 16 17module_output_path = "aafwk_standard/tools" 18 19ohos_systemtest("aa_command_start_system_test") { 20 module_out_path = module_output_path 21 22 include_dirs = [ "//third_party/jsoncpp/include" ] 23 24 sources = [ 25 "aa_command_start_system_test.cpp", 26 "tool_system_test.cpp", 27 ] 28 29 configs = [ "${appexecfwk_path}/tools/bm:tools_bm_config" ] 30 31 cflags = [] 32 if (target_cpu == "arm") { 33 cflags += [ "-DBINDER_IPC_32BIT" ] 34 } 35 36 deps = [ 37 "${aafwk_path}/tools/aa:tools_aa_source_set", 38 "//third_party/googletest:gtest_main", 39 "//third_party/jsoncpp:jsoncpp", 40 ] 41 42 external_deps = [ 43 "appexecfwk_standard:appexecfwk_base", 44 "hiviewdfx_hilog_native:libhilog", 45 "ipc:ipc_core", 46 ] 47} 48 49ohos_systemtest("aa_command_stop_service_system_test") { 50 module_out_path = module_output_path 51 52 sources = [ 53 "aa_command_stop_service_system_test.cpp", 54 "tool_system_test.cpp", 55 ] 56 57 configs = [ "${appexecfwk_path}/tools/bm:tools_bm_config" ] 58 59 cflags = [] 60 if (target_cpu == "arm") { 61 cflags += [ "-DBINDER_IPC_32BIT" ] 62 } 63 64 deps = [ 65 "${aafwk_path}/tools/aa:tools_aa_source_set", 66 "//third_party/googletest:gtest_main", 67 "//third_party/jsoncpp:jsoncpp", 68 ] 69 70 external_deps = [ 71 "appexecfwk_standard:appexecfwk_base", 72 "hiviewdfx_hilog_native:libhilog", 73 "ipc:ipc_core", 74 ] 75} 76 77ohos_systemtest("aa_command_dump_system_test") { 78 module_out_path = module_output_path 79 80 include_dirs = [ "//third_party/jsoncpp/include" ] 81 82 sources = [ 83 "aa_command_dump_system_test.cpp", 84 "tool_system_test.cpp", 85 ] 86 87 configs = [ "${appexecfwk_path}/tools/bm:tools_bm_config" ] 88 89 cflags = [] 90 if (target_cpu == "arm") { 91 cflags += [ "-DBINDER_IPC_32BIT" ] 92 } 93 94 deps = [ 95 "${aafwk_path}/tools/aa:tools_aa_source_set", 96 "//third_party/googletest:gtest_main", 97 "//third_party/jsoncpp:jsoncpp", 98 ] 99 100 external_deps = [ 101 "appexecfwk_standard:appexecfwk_base", 102 "hiviewdfx_hilog_native:libhilog", 103 "ipc:ipc_core", 104 ] 105} 106 107group("systemtest") { 108 testonly = true 109 110 deps = [ 111 ":aa_command_dump_system_test", 112 ":aa_command_start_system_test", 113 ":aa_command_stop_service_system_test", 114 ] 115} 116