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: "fs_mgr_unit_test", 17 test_suites: ["device-tests"], 18 19 shared_libs: [ 20 "libbase", 21 "liblog", 22 ], 23 static_libs: [ 24 "libfs_mgr", 25 "libfstab", 26 ], 27 srcs: [ 28 "fs_mgr_test.cpp", 29 ], 30 31 cflags: [ 32 "-Wall", 33 "-Wextra", 34 "-Werror", 35 ], 36} 37 38cc_prebuilt_binary { 39 name: "adb-remount-test.sh", 40 srcs: ["adb-remount-test.sh"], 41 target: { 42 darwin: { 43 enabled: false, 44 }, 45 windows: { 46 enabled: false, 47 }, 48 android: { 49 enabled: false, 50 }, 51 }, 52 host_supported: true, 53} 54 55sh_test { 56 name: "adb-remount-sh", 57 src: "adb-remount-test.sh", 58 filename: "adb-remount-test.sh", 59 test_suites: ["general-tests"], 60 test_config: "adb-remount-sh.xml", 61} 62 63java_test_host { 64 name: "fs_mgr_vendor_overlay_test", 65 66 srcs: ["src/**/VendorOverlayHostTest.java"], 67 68 libs: ["tradefed"], 69 70 test_config: "vendor-overlay-test.xml", 71 72 test_suites: ["general-tests"], 73} 74