1f0bfeaa8Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2f0bfeaa8Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f0bfeaa8Sopenharmony_ci# you may not use this file except in compliance with the License.
4f0bfeaa8Sopenharmony_ci# You may obtain a copy of the License at
5f0bfeaa8Sopenharmony_ci#
6f0bfeaa8Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f0bfeaa8Sopenharmony_ci#
8f0bfeaa8Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f0bfeaa8Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f0bfeaa8Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f0bfeaa8Sopenharmony_ci# See the License for the specific language governing permissions and
12f0bfeaa8Sopenharmony_ci# limitations under the License.
13f0bfeaa8Sopenharmony_ci
14f0bfeaa8Sopenharmony_ciimport("//build/test.gni")
15f0bfeaa8Sopenharmony_ci
16f0bfeaa8Sopenharmony_cimodule_output_path = "libmeminfo/"
17f0bfeaa8Sopenharmony_ci
18f0bfeaa8Sopenharmony_ciohos_unittest("MemInfoTest") {
19f0bfeaa8Sopenharmony_ci  module_out_path = module_output_path
20f0bfeaa8Sopenharmony_ci  sources = [ "unittest/meminfo_test.cpp" ]
21f0bfeaa8Sopenharmony_ci  external_deps = [
22f0bfeaa8Sopenharmony_ci    "c_utils:utils",
23f0bfeaa8Sopenharmony_ci    "memory_utils:libmeminfo",
24f0bfeaa8Sopenharmony_ci  ]
25f0bfeaa8Sopenharmony_ci}
26f0bfeaa8Sopenharmony_ci
27f0bfeaa8Sopenharmony_cigroup("libmeminfo_test") {
28f0bfeaa8Sopenharmony_ci  testonly = true
29f0bfeaa8Sopenharmony_ci  deps = [ ":MemInfoTest" ]
30f0bfeaa8Sopenharmony_ci}
31