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: "meminspect_tests", 21 22 test_suites: ["device-tests"], 23 24 // Required for reading-writing files which are part of the tests. 25 require_root: true, 26 27 shared_libs: [ 28 "libbase", 29 "libziparchive", 30 ], 31 32 cppflags: [ 33 "-g", 34 "-Wall", 35 "-Werror", 36 ], 37 38 static_libs: [ 39 "libmeminspect", 40 ], 41 42 target: { 43 android: { 44 srcs: ["meminspect_tests.cpp"], 45 }, 46 }, 47 48 cflags: [ 49 "-Wall", 50 "-Wextra", 51 "-Werror", 52 "-O0", // as some tests rely on compiler keeping code as is 53 ], 54 55 compile_multilib: "first", 56} 57 58cc_test { 59 name: "pintool_tests", 60 61 test_suites: ["device-tests"], 62 63 // Required for reading-writing files which are part of the tests. 64 require_root: true, 65 66 shared_libs: [ 67 "libbase", 68 "libziparchive", 69 ], 70 71 cppflags: [ 72 "-g", 73 "-Wall", 74 "-Werror", 75 ], 76 77 static_libs: [ 78 "libmeminspect", 79 ], 80 81 target: { 82 android: { 83 srcs: ["pintool_tests.cpp"], 84 }, 85 }, 86 87 cflags: [ 88 "-Wall", 89 "-Wextra", 90 "-Werror", 91 "-O0", // as some tests rely on compiler keeping code as is 92 ], 93 94 compile_multilib: "first", 95} 96