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