1# Copyright (C) 2021-2022 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/ohos_var.gni") 15import("../build.gni") 16import( 17 "open_posix_testsuite/conformance/interfaces_gn/posix_interface_config.gni") 18 19group("kernel") { 20 testonly = true 21 if (is_standard_system) { 22 if (hats_rich == true) { 23 deps = [ 24 "accesstokenid:HatsAccesstokenidTest", 25 "dmabuffer:HatsDmaBufferTest", 26 "libmeminfoPc:HatsMemInfoTest", 27 "madvise:HatsMadviseTest", 28 "memtracker:HatsMemoryTrackerTest", 29 "mmap:HatsMmapTest", 30 "mmap_v:HatsMmapVTest", 31 "open_posix_testsuite/conformance/interfaces_gn:${posix_interface_module}", 32 "posix_interface/interface_gn:HatsPosixInterfaceTest", 33 "prctl:HatsPrctlTest", 34 "purgeableMem:HatsPurgeableTest", 35 "rtginterface:HatsRtgInterfaceTest", 36 ] 37 } else { 38 deps = [ 39 "accesstokenid:HatsAccesstokenidTest", 40 "dmabuffer:HatsDmaBufferTest", 41 "freelist:HatsFreeListTest", 42 "libmeminfoPc:HatsMemInfoTest", 43 "madvise:HatsMadviseTest", 44 "memtracker:HatsMemoryTrackerTest", 45 "mmap:HatsMmapTest", 46 "open_posix_testsuite/conformance/interfaces_gn:${posix_interface_module}", 47 "posix_interface/interface_gn:HatsPosixInterfaceTest", 48 "prctl:HatsPrctlTest", 49 "purgeableMem:HatsPurgeableTest", 50 "rtginterface:HatsRtgInterfaceTest", 51 ] 52 } 53 } 54} 55