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 55cc_prebuilt_binary { 56 name: "adb-remount-test.sh", 57 srcs: ["adb-remount-test.sh"], 58 target: { 59 darwin: { 60 enabled: false, 61 }, 62 windows: { 63 enabled: false, 64 }, 65 android: { 66 enabled: false, 67 }, 68 }, 69 host_supported: true, 70} 71 72sh_test { 73 name: "adb-remount-sh", 74 src: "adb-remount-test.sh", 75 filename: "adb-remount-test.sh", 76 test_suites: ["general-tests"], 77 test_config: "adb-remount-sh.xml", 78} 79 80java_test_host { 81 name: "fs_mgr_vendor_overlay_test", 82 83 srcs: ["src/**/VendorOverlayHostTest.java"], 84 85 libs: ["tradefed"], 86 87 test_config: "vendor-overlay-test.xml", 88 89 test_suites: ["general-tests"], 90} 91