1# Copyright (c) 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("../../../../test_template.gni") 15import("test_src_functionalext_supplement_stdio.gni") 16 17foreach(s, functionalext_supplement_stdio_test) { 18 test_unittest(s) { 19 target_dir = "functionalext/supplement/stdio" 20 } 21} 22 23ohos_executable("fdsan") { 24 subsystem_name = "thirdparty" 25 part_name = "musl" 26 27 sources = [ "fdsan.cpp" ] 28 29 include_dirs = [ 30 "//${test_dir}/src/functionalext/common", 31 "//${test_dir}/src/common", 32 "${musl_src_base}/src/internal", 33 ] 34 35 configs = [ "//third_party/musl/libc-test/src/common:config_unittest" ] 36 37 deps = [ "//third_party/musl:create_porting_src" ] 38 39 external_deps = [ "bounds_checking_function:libsec_shared" ] 40 41 cflags = [ 42 "-Wno-int-to-void-pointer-cast", 43 "-Wno-void-pointer-to-int-cast", 44 ] 45 46 libs = [ "${musl_lib_dir}/libc.a" ] 47 ohos_test = true 48 test_output_dir = "${root_out_dir}/musl/libc-test" 49} 50 51group("functionalext_supplement_stdio_test") { 52 testonly = true 53 deps = [] 54 foreach(s, functionalext_supplement_stdio_test) { 55 deps += [ ":${s}" ] 56 } 57} 58