1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15cc_test { 16 name: "cintltst", 17 defaults: ["icu_test_defaults"], 18 multilib: { 19 lib64: { 20 suffix: "64", 21 }, 22 lib32: { 23 suffix: "32", 24 }, 25 }, 26 srcs: [ 27 "**/*.c", 28 "**/*.cpp", 29 ], 30 cflags: [ 31 "-DANDROID_LINK_SHARED_ICU4C", 32 // Force the test to use the data file on 33 "-DANDROID_USE_ICU_REG", 34 // Disable some file IO tests to workaround test crashing due to missing data files. 35 "-DUCONFIG_NO_FILE_IO", 36 "-DZERO_EXIT_CODE_FOR_FAILURES", 37 ], 38 exclude_srcs: [ 39 // Not built directly, but #included from other sources. 40 "usrchdat.c", 41 ], 42 // Workaround Soong's limitation that data property can only include 43 // dependencies with a single variant 44 compile_multilib: "first", 45} 46 47java_test_host { 48 name: "cintltst_test", 49 data: [ 50 ":cintltst", 51 ":icu4c_test_data", 52 ":ICU4CTestRunner", 53 ], 54 test_config: "AndroidTest.xml", 55 test_suites: ["device-tests"], 56} 57