1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "system_tools_hidl_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_tools_hidl_license"], 8} 9 10python_test_host { 11 name: "hidl_test", 12 main: "hidl_test.py", 13 srcs: ["hidl_test.py"], 14 test_config: "hidl_test.xml", 15 target_required: [ 16 "hidl_test_client", 17 "hidl_test_servers", 18 ], 19 test_suites: ["general-tests"], 20 test_options: { 21 unit_test: false, 22 }, 23} 24 25cc_defaults { 26 name: "hidl_test-defaults", 27 defaults: ["hidl-gen-defaults"], 28 29 shared_libs: [ 30 "android.hidl.memory@1.0", 31 "android.hidl.memory.token@1.0", 32 "android.hidl.token@1.0", 33 "libbase", 34 "libcutils", 35 "libhidlbase", 36 "libhidlmemory", 37 "liblog", 38 "libutils", 39 ], 40 41 // Allow dlsym'ing self for statically linked passthrough implementations 42 ldflags: ["-rdynamic"], 43 44 // These are static libs only for testing purposes and portability. Shared 45 // libs should be used on device. 46 static_libs: [ 47 "libfootest", 48 "libhidl-gen-utils", 49 "android.hardware.tests.expression@1.0", 50 "android.hardware.tests.foo@1.0", 51 "android.hardware.tests.bar@1.0", 52 "android.hardware.tests.baz@1.0", 53 "android.hardware.tests.hash@1.0", 54 "android.hardware.tests.inheritance@1.0", 55 "android.hardware.tests.memory@1.0", 56 "android.hardware.tests.multithread@1.0", 57 "android.hardware.tests.trie@1.0", 58 "android.hardware.tests.safeunion.cpp@1.0", 59 "android.hardware.tests.safeunion@1.0", 60 ], 61 62 // impls should never be static, these are used only for testing purposes 63 // and test portability since this test pairs with specific hal 64 // implementations 65 whole_static_libs: [ 66 "android.hardware.tests.foo@1.0-impl", 67 "android.hardware.tests.bar@1.0-impl", 68 "android.hardware.tests.baz@1.0-impl", 69 "android.hardware.tests.hash@1.0-impl", 70 "android.hardware.tests.inheritance@1.0-impl", 71 "android.hardware.tests.memory@1.0-impl", 72 "android.hardware.tests.multithread@1.0-impl", 73 "android.hardware.tests.trie@1.0-impl", 74 "android.hardware.tests.safeunion.cpp@1.0-impl", 75 "android.hardware.tests.safeunion@1.0-impl", 76 ], 77 78 group_static_libs: true, 79 80 compile_multilib: "both", 81 multilib: { 82 lib32: { 83 suffix: "32", 84 }, 85 lib64: { 86 suffix: "64", 87 }, 88 }, 89 test_suites: ["general-tests"], 90} 91 92cc_test { 93 name: "hidl_test_client", 94 defaults: ["hidl_test-defaults"], 95 96 srcs: [ 97 "hidl_test_client.cpp", 98 "FooCallback.cpp", 99 "static_test.cpp", 100 ], 101 102 shared_libs: [ 103 "android.hidl.allocator@1.0", 104 ], 105} 106 107cc_test { 108 name: "hidl_test_servers", 109 defaults: ["hidl_test-defaults"], 110 srcs: ["hidl_test_servers.cpp"], 111 gtest: false, 112} 113