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("//build/test.gni") 15import("../../../test_template.gni") 16import("test_src_functionalext_locale.gni") 17 18test_out_dir = "${root_out_dir}/musl" 19 20action("copy_mo_file") { 21 outputs = [ "${test_out_dir}/libc-test" ] 22 script = 23 "//third_party/musl/libc-test/src/functionalext/locale/copy_mo_file.sh" 24 args = [ "-i" ] + [ rebase_path("//third_party/musl/libc-test") ] 25 args += [ "-o" ] + [ rebase_path("${test_out_dir}/libc-test") ] 26} 27 28foreach(s, functionalext_locale_test) { 29 test_unittest(s) { 30 target_dir = "functionalext/locale" 31 } 32} 33 34group("functionalext_locale_test") { 35 testonly = true 36 deps = [] 37 foreach(s, functionalext_locale_test) { 38 deps += [ ":${s}" ] 39 } 40 41 deps += [ ":copy_mo_file" ] 42} 43