# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("../../../test_template.gni") import("test_src_functionalext_locale.gni") test_out_dir = "${root_out_dir}/musl" action("copy_mo_file") { outputs = [ "${test_out_dir}/libc-test" ] script = "//third_party/musl/libc-test/src/functionalext/locale/copy_mo_file.sh" args = [ "-i" ] + [ rebase_path("//third_party/musl/libc-test") ] args += [ "-o" ] + [ rebase_path("${test_out_dir}/libc-test") ] } foreach(s, functionalext_locale_test) { test_unittest(s) { target_dir = "functionalext/locale" } } group("functionalext_locale_test") { testonly = true deps = [] foreach(s, functionalext_locale_test) { deps += [ ":${s}" ] } deps += [ ":copy_mo_file" ] }