Merge "[vts-core] Add vts_core_liblp_test to vts-core"

This commit is contained in:
Treehugger Robot 2019-09-25 05:54:31 +00:00 committed by Gerrit Code Review
commit b4a65cf1ec
2 changed files with 42 additions and 12 deletions

View file

@ -55,9 +55,26 @@ cc_library {
export_include_dirs: ["include"],
}
filegroup {
name: "liblp_test_srcs",
srcs: [
"builder_test.cpp",
"device_test.cpp",
"io_test.cpp",
"test_partition_opener.cpp",
"utility_test.cpp",
],
}
cc_defaults {
name: "liblp_test_defaults",
defaults: ["fs_mgr_defaults"],
sanitize: {
misc_undefined: ["integer"],
},
cflags: [
"-Wall",
"-Werror",
],
cppflags: [
"-Wno-unused-parameter",
],
@ -71,23 +88,14 @@ cc_defaults {
"libstorage_literals_headers",
],
stl: "libc++_static",
srcs: [
"builder_test.cpp",
"device_test.cpp",
"io_test.cpp",
"test_partition_opener.cpp",
"utility_test.cpp",
],
srcs: [":liblp_test_srcs"],
}
cc_test {
name: "liblp_test",
defaults: ["liblp_test_defaults"],
test_config: "liblp_test.xml",
test_suites: [
"device-tests",
"vts-core",
],
test_suites: ["device-tests"],
}
cc_test {

View file

@ -0,0 +1,22 @@
//
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
cc_test {
name: "vts_core_liblp_test",
defaults: ["liblp_test_defaults"],
test_suites: ["vts-core"],
test_min_api_level: 29,
}