• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
2# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without modification,
5# are permitted provided that the following conditions are met:
6#
7# 1. Redistributions of source code must retain the above copyright notice, this list of
8#    conditions and the following disclaimer.
9#
10# 2. Redistributions in binary form must reproduce the above copyright notice, this list
11#    of conditions and the following disclaimer in the documentation and/or other materials
12#    provided with the distribution.
13#
14# 3. Neither the name of the copyright holder nor the names of its contributors may be used
15#    to endorse or promote products derived from this software without specific prior written
16#    permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30import("//build/lite/config/test.gni")
31import("../../config.gni")
32
33common_include_dirs = [
34  "//third_party/googletest/googletest/include",
35  "../../common/include",
36  "//kernel/liteos_a/testsuites/unittest/fs/vfs",
37  "//kernel/liteos_a/testsuites/unittest/fs/vfat",
38]
39
40sources_entry = [
41  "../../common/osTest.cpp",
42  "VfsFatTest.cpp",
43]
44
45sources_smoke = [
46  "smoke/It_vfs_fat_026.cpp",
47]
48
49sources_pressure = [
50  "pressure/It_fs_fat_performance_001.cpp",
51  "pressure/It_fs_fat_performance_002.cpp",
52  "pressure/It_fs_fat_performance_003.cpp",
53  "pressure/It_fs_fat_performance_004.cpp",
54  "pressure/It_fs_fat_performance_005.cpp",
55  "pressure/It_fs_fat_performance_006.cpp",
56  "pressure/It_fs_fat_performance_007.cpp",
57  "pressure/It_fs_fat_performance_008.cpp",
58  "pressure/It_fs_fat_performance_013.cpp",
59  "pressure/It_fs_fat_performance_014.cpp",
60  "pressure/It_fs_fat_performance_015.cpp",
61  "pressure/It_fs_fat_performance_016.cpp",
62
63  "pressure/It_fs_fat_pressure_029.cpp",
64  "pressure/It_fs_fat_pressure_030.cpp",
65  "pressure/It_fs_fat_pressure_031.cpp",
66  "pressure/It_fs_fat_pressure_038.cpp",
67  "pressure/It_fs_fat_pressure_040.cpp",
68  "pressure/It_fs_fat_pressure_041.cpp",
69  "pressure/It_fs_fat_pressure_042.cpp",
70  "pressure/It_fs_fat_pressure_301.cpp",
71  "pressure/It_fs_fat_pressure_302.cpp",
72  "pressure/It_fs_fat_pressure_303.cpp",
73  "pressure/It_fs_fat_pressure_305.cpp",
74  "pressure/It_fs_fat_pressure_306.cpp",
75  "pressure/It_fs_fat_pressure_309.cpp",
76
77  "pressure/It_vfs_fat_mutipthread_003.cpp",
78  "pressure/It_vfs_fat_mutipthread_004.cpp",
79  "pressure/It_vfs_fat_mutipthread_005.cpp",
80  "pressure/It_vfs_fat_mutipthread_006.cpp",
81  "pressure/It_vfs_fat_mutipthread_008.cpp",
82  "pressure/It_vfs_fat_mutipthread_009.cpp",
83  "pressure/It_vfs_fat_mutipthread_010.cpp",
84  "pressure/It_vfs_fat_mutipthread_012.cpp",
85  "pressure/It_vfs_fat_mutipthread_014.cpp",
86  "pressure/It_vfs_fat_mutipthread_016.cpp",
87  "pressure/It_vfs_fat_mutipthread_017.cpp",
88  "pressure/It_vfs_fat_mutipthread_018.cpp",
89  "pressure/It_vfs_fat_mutipthread_019.cpp",
90  "pressure/It_vfs_fat_mutipthread_020.cpp",
91  "pressure/It_vfs_fat_mutipthread_021.cpp",
92  "pressure/It_vfs_fat_mutipthread_022.cpp",
93  "pressure/It_vfs_fat_mutipthread_023.cpp",
94  "pressure/It_vfs_fat_mutipthread_024.cpp",
95  "pressure/It_vfs_fat_mutipthread_027.cpp",
96  "pressure/It_vfs_fat_mutipthread_029.cpp",
97  "pressure/It_vfs_fat_mutipthread_030.cpp",
98  "pressure/It_vfs_fat_mutipthread_032.cpp",
99  "pressure/It_vfs_fat_mutipthread_033.cpp",
100  "pressure/It_vfs_fat_mutipthread_035.cpp",
101  "pressure/It_vfs_fat_mutipthread_036.cpp",
102  "pressure/It_vfs_fat_mutipthread_038.cpp",
103  "pressure/It_vfs_fat_mutipthread_039.cpp",
104  "pressure/It_vfs_fat_mutipthread_040.cpp",
105  "pressure/It_vfs_fat_mutipthread_041.cpp",
106  "pressure/It_vfs_fat_mutipthread_042.cpp",
107  "pressure/It_vfs_fat_mutipthread_043.cpp",
108  "pressure/It_vfs_fat_mutipthread_044.cpp",
109  "pressure/It_vfs_fat_mutipthread_045.cpp",
110  "pressure/It_vfs_fat_mutipthread_046.cpp",
111  "pressure/It_vfs_fat_mutipthread_047.cpp",
112  "pressure/It_vfs_fat_mutipthread_048.cpp",
113  "pressure/It_vfs_fat_mutipthread_049.cpp",
114  "pressure/It_vfs_fat_mutipthread_050.cpp",
115]
116
117sources_full = [
118  "full/It_vfs_fat_066.cpp",
119  "full/It_vfs_fat_068.cpp",
120  "full/It_vfs_fat_072.cpp",
121  "full/It_vfs_fat_073.cpp",
122  "full/It_vfs_fat_074.cpp",
123  "full/It_vfs_fat_496.cpp",
124  "full/It_vfs_fat_497.cpp",
125  "full/It_vfs_fat_498.cpp",
126  "full/It_vfs_fat_499.cpp",
127  "full/It_vfs_fat_500.cpp",
128  "full/It_vfs_fat_501.cpp",
129  "full/It_vfs_fat_502.cpp",
130  "full/It_vfs_fat_503.cpp",
131  "full/It_vfs_fat_504.cpp",
132  "full/It_vfs_fat_506.cpp",
133  "full/It_vfs_fat_507.cpp",
134  "full/It_vfs_fat_508.cpp",
135  "full/It_vfs_fat_509.cpp",
136  "full/It_vfs_fat_510.cpp",
137  "full/It_vfs_fat_511.cpp",
138  "full/It_vfs_fat_512.cpp",
139  "full/It_vfs_fat_513.cpp",
140  "full/It_vfs_fat_514.cpp",
141  "full/It_vfs_fat_515.cpp",
142  "full/It_vfs_fat_516.cpp",
143  "full/It_vfs_fat_517.cpp",
144  "full/It_vfs_fat_518.cpp",
145  "full/It_vfs_fat_519.cpp",
146  "full/It_vfs_fat_662.cpp",
147  "full/It_vfs_fat_663.cpp",
148  "full/It_vfs_fat_664.cpp",
149  "full/It_vfs_fat_665.cpp",
150  "full/It_vfs_fat_666.cpp",
151  "full/It_vfs_fat_667.cpp",
152  "full/It_vfs_fat_668.cpp",
153  "full/It_vfs_fat_669.cpp",
154  "full/It_vfs_fat_670.cpp",
155  "full/It_vfs_fat_671.cpp",
156  "full/It_vfs_fat_672.cpp",
157  "full/It_vfs_fat_673.cpp",
158  "full/It_vfs_fat_674.cpp",
159  "full/It_vfs_fat_675.cpp",
160  "full/It_vfs_fat_676.cpp",
161  "full/It_vfs_fat_677.cpp",
162  "full/It_vfs_fat_678.cpp",
163  "full/It_vfs_fat_679.cpp",
164  "full/It_vfs_fat_680.cpp",
165  "full/It_vfs_fat_681.cpp",
166  "full/It_vfs_fat_682.cpp",
167  "full/It_vfs_fat_683.cpp",
168  "full/It_vfs_fat_684.cpp",
169  "full/It_vfs_fat_685.cpp",
170  "full/It_vfs_fat_686.cpp",
171  "full/It_vfs_fat_687.cpp",
172  "full/It_vfs_fat_692.cpp",
173  "full/It_vfs_fat_693.cpp",
174  "full/It_vfs_fat_694.cpp",
175  "full/It_vfs_fat_870.cpp",
176  "full/It_vfs_fat_872.cpp",
177  "full/It_vfs_fat_873.cpp",
178  "full/It_vfs_fat_874.cpp",
179  "full/It_vfs_fat_875.cpp",
180  "full/It_vfs_fat_902.cpp",
181  "full/It_vfs_fat_903.cpp",
182  "full/It_vfs_fat_904.cpp",
183  "full/It_vfs_fat_909.cpp",
184]
185
186if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
187  unittest("liteos_a_fs_vfat_unittest_door") {
188    output_extension = "bin"
189    output_dir = "$root_out_dir/test/unittest/kernel"
190    include_dirs = common_include_dirs
191    sources = sources_entry
192    sources += sources_smoke
193    sources_full = []
194    sources += sources_full
195    sources_pressure = []
196    sources += sources_pressure
197    configs = [ "../..:public_config_for_door" ]
198    deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
199  }
200}
201
202if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
203  unittest("liteos_a_fs_vfat_unittest") {
204    output_extension = "bin"
205    output_dir = "$root_out_dir/test/unittest/kernel"
206    include_dirs = common_include_dirs
207    sources = sources_entry
208    sources += sources_smoke
209    sources += sources_full
210    sources_pressure = []
211    sources += sources_pressure
212    configs = [ "../..:public_config_for_all" ]
213    deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
214  }
215}
216
217if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_HIGH) {
218  unittest("liteos_a_fs_vfat_unittest_pressure") {
219    output_extension = "bin"
220    output_dir = "$root_out_dir/test/unittest/kernel"
221    include_dirs = common_include_dirs
222    sources = sources_entry
223    sources_smoke = []
224    sources += sources_smoke
225    sources_full = []
226    sources += sources_full
227    sources += sources_pressure
228    configs = [ "../..:public_config_for_pressure" ]
229    deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
230  }
231}
232