blob: 88df0dc03cf8ae6078c887b82e715ed1a0e67adc [file] [log] [blame]
//
// Copyright (C) 2016 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.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
python_test_host {
name: "fmq_test",
main: "fmq_test.py",
srcs: ["fmq_test.py"],
test_config: "fmq_test.xml",
data_device_bins_both: [
"android.hardware.tests.msgq@1.0-service-test",
"fmq_test_client",
],
test_suites: [
"general-tests",
"vts",
],
test_options: {
unit_test: false,
},
}
cc_test {
name: "fmq_test_client",
tidy_timeout_srcs: ["msgq_test_client.cpp"],
srcs: ["msgq_test_client.cpp"],
// This cc_test is used through the python test and won't support isolated
isolated: false,
cflags: [
"-Wall",
"-Werror",
],
sanitize: {
misc_undefined: ["integer"],
},
shared_libs: [
"libbase",
"libcutils",
"libfmq",
"libhidlbase",
"liblog",
"libutils",
"libbinder_ndk",
],
// These are static libs only for testing purposes and portability. Shared
// libs should be used on device.
static_libs: [
"android.hardware.common-V2-ndk",
"android.hardware.common.fmq-V1-ndk",
"android.hardware.tests.msgq@1.0",
"android.fmq.test-ndk",
],
whole_static_libs: [
"android.hardware.tests.msgq@1.0-impl",
"android.fmq.test-impl",
],
compile_multilib: "both",
multilib: {
lib32: {
suffix: "32",
},
lib64: {
suffix: "64",
},
},
test_suites: [
"general-tests",
"vts",
],
auto_gen_config: false,
}
cc_test {
name: "fmq_unit_tests",
tidy_timeout_srcs: ["fmq_unit_tests.cpp"],
srcs: ["fmq_unit_tests.cpp"],
shared_libs: [
"libbase",
"libcutils",
"libfmq",
"libhidlbase",
"liblog",
"libutils",
],
static_libs: [
"android.hardware.common.fmq-V1-ndk",
],
cflags: [
"-Wall",
"-Werror",
],
sanitize: {
misc_undefined: ["integer"],
},
test_suites: ["general-tests"],
auto_gen_config: true,
}