blob: 40148b1f3886ae874a351919a6709769a6638067 [file] [log] [blame]
Steven Moreland23537f02017-10-12 16:20:27 -07001//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Bob Badour1edd2c32021-02-12 15:54:30 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Steven Morelande58566b2020-05-16 02:08:05 +000021python_test_host {
22 name: "fmq_test",
23 main: "fmq_test.py",
24 srcs: ["fmq_test.py"],
25 test_config: "fmq_test.xml",
26 target_required: [
27 "android.hardware.tests.msgq@1.0-service-test",
28 "fmq_test_client",
29 ],
Steven Moreland507ade12020-09-09 23:15:16 +000030 test_suites: ["general-tests", "vts"],
Julien Desprez11ca29a2021-03-30 23:03:02 +000031 test_options: {
32 unit_test: false,
33 },
Steven Morelande58566b2020-05-16 02:08:05 +000034}
35
Steven Moreland23537f02017-10-12 16:20:27 -070036cc_test {
Steven Morelande58566b2020-05-16 02:08:05 +000037 name: "fmq_test_client",
Chih-Hung Hsiehbeb46022022-02-17 17:26:50 -080038 tidy_timeout_srcs: ["msgq_test_client.cpp"],
Steven Moreland23537f02017-10-12 16:20:27 -070039 srcs: ["msgq_test_client.cpp"],
40
41 cflags: [
42 "-Wall",
43 "-Werror",
44 ],
Devin Moore7c04cfe2020-08-17 14:37:13 -070045 sanitize: {
46 misc_undefined: ["integer"],
47 },
Steven Moreland23537f02017-10-12 16:20:27 -070048
49 shared_libs: [
50 "libbase",
51 "libcutils",
52 "libfmq",
53 "libhidlbase",
Steven Moreland23537f02017-10-12 16:20:27 -070054 "liblog",
55 "libutils",
Devin Moore133cb5e2020-07-07 16:31:22 -070056 "libbinder_ndk",
Steven Moreland23537f02017-10-12 16:20:27 -070057 ],
58
Steven Moreland23537f02017-10-12 16:20:27 -070059 // These are static libs only for testing purposes and portability. Shared
60 // libs should be used on device.
Devin Moore133cb5e2020-07-07 16:31:22 -070061 static_libs: [
Jiyong Park45eee702021-07-27 12:19:41 +090062 "android.hardware.common-V2-ndk",
63 "android.hardware.common.fmq-V1-ndk",
Devin Moore133cb5e2020-07-07 16:31:22 -070064 "android.hardware.tests.msgq@1.0",
Jiyong Park45eee702021-07-27 12:19:41 +090065 "android.fmq.test-ndk",
Devin Moore133cb5e2020-07-07 16:31:22 -070066 ],
67 whole_static_libs: [
68 "android.hardware.tests.msgq@1.0-impl",
69 "android.fmq.test-impl"
70 ],
Steven Morelande58566b2020-05-16 02:08:05 +000071
72 compile_multilib: "both",
73 multilib: {
74 lib32: {
75 suffix: "32",
76 },
77 lib64: {
78 suffix: "64",
79 },
80 },
Steven Moreland507ade12020-09-09 23:15:16 +000081 test_suites: ["general-tests", "vts"],
82 auto_gen_config: false,
Steven Moreland23537f02017-10-12 16:20:27 -070083}
84
85cc_test {
Steven Morelanddc398dd2020-05-16 01:01:38 +000086 name: "fmq_unit_tests",
Steven Moreland23537f02017-10-12 16:20:27 -070087
Chih-Hung Hsiehbeb46022022-02-17 17:26:50 -080088 tidy_timeout_srcs: ["fmq_unit_tests.cpp"],
Steven Morelanddc398dd2020-05-16 01:01:38 +000089 srcs: ["fmq_unit_tests.cpp"],
Steven Moreland23537f02017-10-12 16:20:27 -070090 shared_libs: [
91 "libbase",
92 "libcutils",
93 "libfmq",
94 "libhidlbase",
Steven Moreland23537f02017-10-12 16:20:27 -070095 "liblog",
96 "libutils",
97 ],
Devin Moore133cb5e2020-07-07 16:31:22 -070098 static_libs: [
Jiyong Park45eee702021-07-27 12:19:41 +090099 "android.hardware.common.fmq-V1-ndk",
Devin Moore133cb5e2020-07-07 16:31:22 -0700100 ],
Steven Moreland23537f02017-10-12 16:20:27 -0700101
102 cflags: [
103 "-Wall",
104 "-Werror",
105 ],
Devin Moore7c04cfe2020-08-17 14:37:13 -0700106 sanitize: {
107 misc_undefined: ["integer"],
108 },
Steven Morelanddc398dd2020-05-16 01:01:38 +0000109 test_suites: ["general-tests"],
110 auto_gen_config: true,
Steven Moreland23537f02017-10-12 16:20:27 -0700111}