Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 1 | // |
| 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 Badour | 1edd2c3 | 2021-02-12 15:54:30 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Steven Moreland | e58566b | 2020-05-16 02:08:05 +0000 | [diff] [blame] | 21 | python_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 Moreland | 507ade1 | 2020-09-09 23:15:16 +0000 | [diff] [blame] | 30 | test_suites: ["general-tests", "vts"], |
Julien Desprez | 11ca29a | 2021-03-30 23:03:02 +0000 | [diff] [blame] | 31 | test_options: { |
| 32 | unit_test: false, |
| 33 | }, |
Steven Moreland | e58566b | 2020-05-16 02:08:05 +0000 | [diff] [blame] | 34 | } |
| 35 | |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 36 | cc_test { |
Steven Moreland | e58566b | 2020-05-16 02:08:05 +0000 | [diff] [blame] | 37 | name: "fmq_test_client", |
Chih-Hung Hsieh | beb4602 | 2022-02-17 17:26:50 -0800 | [diff] [blame] | 38 | tidy_timeout_srcs: ["msgq_test_client.cpp"], |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 39 | srcs: ["msgq_test_client.cpp"], |
| 40 | |
| 41 | cflags: [ |
| 42 | "-Wall", |
| 43 | "-Werror", |
| 44 | ], |
Devin Moore | 7c04cfe | 2020-08-17 14:37:13 -0700 | [diff] [blame] | 45 | sanitize: { |
| 46 | misc_undefined: ["integer"], |
| 47 | }, |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 48 | |
| 49 | shared_libs: [ |
| 50 | "libbase", |
| 51 | "libcutils", |
| 52 | "libfmq", |
| 53 | "libhidlbase", |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 54 | "liblog", |
| 55 | "libutils", |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 56 | "libbinder_ndk", |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 57 | ], |
| 58 | |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 59 | // These are static libs only for testing purposes and portability. Shared |
| 60 | // libs should be used on device. |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 61 | static_libs: [ |
Jiyong Park | 45eee70 | 2021-07-27 12:19:41 +0900 | [diff] [blame] | 62 | "android.hardware.common-V2-ndk", |
| 63 | "android.hardware.common.fmq-V1-ndk", |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 64 | "android.hardware.tests.msgq@1.0", |
Jiyong Park | 45eee70 | 2021-07-27 12:19:41 +0900 | [diff] [blame] | 65 | "android.fmq.test-ndk", |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 66 | ], |
| 67 | whole_static_libs: [ |
| 68 | "android.hardware.tests.msgq@1.0-impl", |
| 69 | "android.fmq.test-impl" |
| 70 | ], |
Steven Moreland | e58566b | 2020-05-16 02:08:05 +0000 | [diff] [blame] | 71 | |
| 72 | compile_multilib: "both", |
| 73 | multilib: { |
| 74 | lib32: { |
| 75 | suffix: "32", |
| 76 | }, |
| 77 | lib64: { |
| 78 | suffix: "64", |
| 79 | }, |
| 80 | }, |
Steven Moreland | 507ade1 | 2020-09-09 23:15:16 +0000 | [diff] [blame] | 81 | test_suites: ["general-tests", "vts"], |
| 82 | auto_gen_config: false, |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | cc_test { |
Steven Moreland | dc398dd | 2020-05-16 01:01:38 +0000 | [diff] [blame] | 86 | name: "fmq_unit_tests", |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 87 | |
Chih-Hung Hsieh | beb4602 | 2022-02-17 17:26:50 -0800 | [diff] [blame] | 88 | tidy_timeout_srcs: ["fmq_unit_tests.cpp"], |
Steven Moreland | dc398dd | 2020-05-16 01:01:38 +0000 | [diff] [blame] | 89 | srcs: ["fmq_unit_tests.cpp"], |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 90 | shared_libs: [ |
| 91 | "libbase", |
| 92 | "libcutils", |
| 93 | "libfmq", |
| 94 | "libhidlbase", |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 95 | "liblog", |
| 96 | "libutils", |
| 97 | ], |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 98 | static_libs: [ |
Jiyong Park | 45eee70 | 2021-07-27 12:19:41 +0900 | [diff] [blame] | 99 | "android.hardware.common.fmq-V1-ndk", |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 100 | ], |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 101 | |
| 102 | cflags: [ |
| 103 | "-Wall", |
| 104 | "-Werror", |
| 105 | ], |
Devin Moore | 7c04cfe | 2020-08-17 14:37:13 -0700 | [diff] [blame] | 106 | sanitize: { |
| 107 | misc_undefined: ["integer"], |
| 108 | }, |
Steven Moreland | dc398dd | 2020-05-16 01:01:38 +0000 | [diff] [blame] | 109 | test_suites: ["general-tests"], |
| 110 | auto_gen_config: true, |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 111 | } |