config.gni 8.4 KB
Newer Older
Z
zhushengle 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# Copyright (c) 2023-2023 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
#    conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
#    of conditions and the following disclaimer in the documentation and/or other materials
#    provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
#    to endorse or promote products derived from this software without specific prior written
#    permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import("//kernel/liteos_a/testsuites/unittest/config.gni")

common_include_dirs = [
Z
zhushengle 已提交
32
  "$THIRDPARTY_GOOGLETEST_DIR/googletest/include",
Z
zhushengle 已提交
33 34 35 36 37 38
  "../common/include",
  "$TEST_UNITTEST_DIR/container",
]

sources_entry = [ "$TEST_UNITTEST_DIR/container/It_container_test.cpp" ]

Z
zhushengle 已提交
39
sources_smoke = [ "$TEST_UNITTEST_DIR/container/smoke/It_container_001.cpp" ]
40

Z
zhushengle 已提交
41
sources_full = []
Z
zhushengle 已提交
42

Z
zhushengle 已提交
43
if (defined(LOSCFG_USER_TEST_PID_CONTAINER)) {
Z
zhushengle 已提交
44 45 46 47
  sources_smoke += [
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_023.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_025.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_026.cpp",
Z
zhushengle 已提交
48 49
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_027.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_028.cpp",
Z
zhushengle 已提交
50 51
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_029.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_030.cpp",
Z
zhushengle 已提交
52
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_031.cpp",
Z
zhushengle 已提交
53 54
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_032.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_033.cpp",
Z
zhushengle 已提交
55
  ]
Z
zhushengle 已提交
56 57 58 59 60
  sources_full += [
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_002.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_003.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_004.cpp",
Z
zhushengle 已提交
61
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_005.cpp",
Z
zhushengle 已提交
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_006.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_007.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_008.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_009.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_010.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_011.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_012.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_013.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_014.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_015.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_016.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_017.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_018.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_019.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_020.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_021.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_022.cpp",
    "$TEST_UNITTEST_DIR/container/full/It_pid_container_024.cpp",
  ]
}
if (defined(LOSCFG_USER_TEST_UTS_CONTAINER)) {
  sources_smoke += [
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_002.cpp",
Z
zhushengle 已提交
86
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_004.cpp",
Z
zhushengle 已提交
87 88
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_005.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_006.cpp",
Z
zhushengle 已提交
89 90
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_007.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_uts_container_008.cpp",
Z
zhushengle 已提交
91 92 93 94
  ]
  sources_full +=
      [ "$TEST_UNITTEST_DIR/container/full/It_uts_container_003.cpp" ]
}
95 96
if (defined(LOSCFG_USER_TEST_MNT_CONTAINER)) {
  sources_smoke += [
Z
zhushengle 已提交
97 98
    "$TEST_UNITTEST_DIR/container/smoke/It_container_chroot_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_container_chroot_002.cpp",
99 100 101 102 103 104 105 106
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_002.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_003.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_004.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_005.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_006.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_007.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_008.cpp",
Z
zhushengle 已提交
107 108
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_009.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_mnt_container_010.cpp",
109 110
  ]
}
Z
zhushengle 已提交
111 112 113 114 115 116 117 118 119

if (defined(LOSCFG_USER_TEST_IPC_CONTAINER)) {
  sources_smoke += [
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_002.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_003.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_004.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_005.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_006.cpp",
Z
zhushengle 已提交
120 121
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_007.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_ipc_container_008.cpp",
Z
zhushengle 已提交
122 123
  ]
}
Z
zhushengle 已提交
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

if (defined(LOSCFG_USER_TEST_TIME_CONTAINER)) {
  sources_smoke += [
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_002.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_003.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_004.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_005.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_006.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_007.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_008.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_009.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_time_container_010.cpp",
  ]
}
Z
zhushengle 已提交
139 140 141 142 143 144 145

if (defined(LOSCFG_USER_TEST_USER_CONTAINER)) {
  sources_smoke += [
    "$TEST_UNITTEST_DIR/container/smoke/It_user_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_user_container_002.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_user_container_003.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_user_container_004.cpp",
Z
zhushengle 已提交
146 147
    "$TEST_UNITTEST_DIR/container/smoke/It_user_container_006.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_user_container_007.cpp",
Z
zhushengle 已提交
148 149 150 151
  ]
  sources_full +=
      [ "$TEST_UNITTEST_DIR/container/full/It_user_container_005.cpp" ]
}
Z
zhushengle 已提交
152 153 154 155 156 157 158 159 160 161 162 163 164 165
if (defined(LOSCFG_USER_TEST_NET_CONTAINER)) {
  sources_smoke += [
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_001.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_002.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_003.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_004.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_005.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_006.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_007.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_008.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_009.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_011.cpp",
    "$TEST_UNITTEST_DIR/container/smoke/It_net_container_012.cpp",
  ]
166 167
  sources_full +=
      [ "$TEST_UNITTEST_DIR/container/full/It_net_container_010.cpp" ]
Z
zhushengle 已提交
168
}