OSDN Git Service

Add binderLibTest_IPC_32
authorHsin-Yi Chen <hsinyichen@google.com>
Thu, 6 Jul 2017 03:40:20 +0000 (11:40 +0800)
committerHsin-Yi Chen <hsinyichen@google.com>
Mon, 10 Jul 2017 12:05:50 +0000 (20:05 +0800)
1) Add product_variables to binderLibTest because the test case
   CheckHandleZeroBinderHighBitsZeroCookie uses binder data structure.
2) Add binderLibTest_IPC_32 which always compiles the test program for
   32-bit binder.

Bug: 63307240
Bug: 62366937
Test: vts-tradefed run commandAndExit vts -m VtsKernelBinderTest
Change-Id: I40c738a039459fbfece9689012249ae7ea93df9d

libs/binder/tests/Android.bp

index bef9505..3071408 100644 (file)
@@ -42,6 +42,23 @@ cc_test {
 }
 
 cc_test {
+    name: "binderLibTest_IPC_32",
+    srcs: ["binderLibTest.cpp"],
+    shared_libs: [
+        "libbinder",
+        "libutils",
+    ],
+    compile_multilib: "32",
+    cflags: ["-DBINDER_IPC_32BIT=1"],
+}
+
+cc_test {
+    product_variables: {
+        binder32bit: {
+            cflags: ["-DBINDER_IPC_32BIT=1"],
+        },
+    },
+
     name: "binderLibTest",
     srcs: ["binderLibTest.cpp"],
     shared_libs: [