1 # Copyright (c) 2024 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 
14 import("//base/security/security_guard/security_guard.gni")
15 import("//build/ohos.gni")
16 import("//build/test.gni")
17 
18 group("security_guard_build_module_test") {
19   testonly = true
20   deps = []
21   if (is_standard_system) {
22     deps += [
23       "${sg_root_dir}/interfaces/inner_api/classify/test:unittest",
24       "${sg_root_dir}/interfaces/inner_api/collect/test:unittest",
25       "${sg_root_dir}/interfaces/inner_api/obtaindata/test:unittest",
26     ]
27   }
28 }
29 
30 group("security_guard_fuzz_test") {
31   testonly = true
32   deps = []
33   if (is_standard_system) {
34     deps += [
35       "${sg_root_dir}/test/fuzztest/classify:fuzztest",
36       "${sg_root_dir}/test/fuzztest/collect:fuzztest",
37       "${sg_root_dir}/test/fuzztest/ipc:fuzztest",
38       "${sg_root_dir}/test/fuzztest/obtaindata:fuzztest",
39     ]
40   }
41 }
42 
43 group("security_guard_unit_test") {
44   testonly = true
45   if (is_standard_system) {
46     deps = [
47       "${sg_root_dir}/test/unittest/config_manager:unittest",
48       "${sg_root_dir}/test/unittest/data_collect:data_collect_test",
49       "${sg_root_dir}/test/unittest/data_collect:unittest",
50       "${sg_root_dir}/test/unittest/risk_classify:unittest",
51       "${sg_root_dir}/test/unittest/security_collector:security_collector_test",
52       "${sg_root_dir}/test/unittest/security_collector:unittest",
53     ]
54   }
55 }
56