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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17 default_team: "trendy_team_android_kernel", 18} 19 20cc_test { 21 name: "CtsFsMgrTestCases", 22 test_suites: [ 23 "cts", 24 "device-tests", 25 ], 26 compile_multilib: "both", 27 multilib: { 28 lib32: { 29 suffix: "32", 30 }, 31 lib64: { 32 suffix: "64", 33 }, 34 }, 35 36 shared_libs: [ 37 "libbase", 38 "liblog", 39 ], 40 static_libs: [ 41 "libfs_mgr", 42 "libgmock", 43 "libgtest", 44 ], 45 srcs: [ 46 "file_wait_test.cpp", 47 "fs_mgr_test.cpp", 48 ], 49 50 cflags: [ 51 "-Wall", 52 "-Wextra", 53 "-Werror", 54 ], 55} 56 57sh_binary_host { 58 name: "adb-remount-test", 59 src: "adb-remount-test.sh", 60 filename_from_src: true, 61 target: { 62 darwin: { 63 enabled: false, 64 }, 65 windows: { 66 enabled: false, 67 }, 68 }, 69} 70 71sh_test { 72 name: "adb-remount-sh", 73 src: "adb-remount-test.sh", 74 filename_from_src: true, 75 test_suites: ["general-tests"], 76 test_config: "adb-remount-sh.xml", 77} 78 79java_test_host { 80 name: "fs_mgr_vendor_overlay_test", 81 82 srcs: ["src/**/VendorOverlayHostTest.java"], 83 84 libs: ["tradefed"], 85 86 test_config: "vendor-overlay-test.xml", 87 88 test_suites: ["general-tests"], 89} 90 91cc_test { 92 name: "vts_fs_test", 93 test_suites: [ 94 "vts", 95 "device-tests", 96 ], 97 test_options: { 98 min_shipping_api_level: 29, 99 }, 100 require_root: true, 101 auto_gen_config: true, 102 cflags: [ 103 "-Wall", 104 "-Werror", 105 ], 106 srcs: [ 107 "vts_fs_test.cpp", 108 ], 109 shared_libs: [ 110 "libbase", 111 ], 112 static_libs: [ 113 "libfs_mgr", 114 "libgmock", 115 "libgtest", 116 ], 117} 118