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("//test/xts/hats/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        "syscalls:HatsSyscallTest",
37      ]
38    } else {
39      deps = [
40        "accesstokenid:HatsAccesstokenidTest",
41        "dmabuffer:HatsDmaBufferTest",
42        "freelist:HatsFreeListTest",
43        "libmeminfoPc:HatsMemInfoTest",
44        "madvise:HatsMadviseTest",
45        "memtracker:HatsMemoryTrackerTest",
46        "mmap:HatsMmapTest",
47        "open_posix_testsuite/conformance/interfaces_gn:${posix_interface_module}",
48        "posix_interface/interface_gn:HatsPosixInterfaceTest",
49        "prctl:HatsPrctlTest",
50        "purgeableMem:HatsPurgeableTest",
51        "rtginterface:HatsRtgInterfaceTest",
52        "syscall_ipc:HatsSyscallIpcTest",
53        "syscalls:HatsSyscallTest",
54      ]
55    }
56  }
57}
58