OSDN Git Service

Swich TEST_MAPPING config to unit_tests:true
authorJulien Desprez <jdesprez@google.com>
Mon, 21 Dec 2020 22:00:45 +0000 (14:00 -0800)
committerJulien Desprez <jdesprez@google.com>
Mon, 21 Dec 2020 22:00:45 +0000 (14:00 -0800)
All unit_tests:true are run in presubmit which avoids
the explicit definition of TEST_MAPPING.

Test: presubmit runs all those tests
Bug: 175408655
Change-Id: Ibf2b80f902bffa4924853f001780e2d273cf451f

gd/Android.bp
gd/TEST_MAPPING [deleted file]
gd/dumpsys/Android.bp

index a345529..c49b3e9 100644 (file)
@@ -269,6 +269,9 @@ cc_test {
         "gd_clang_coverage_bin",
     ],
     host_supported: true,
+    test_options: {
+        unit_test: true,
+    },
     target: {
         linux: {
             srcs: [
@@ -346,6 +349,9 @@ cc_test {
         "gd_clang_coverage_bin",
     ],
     host_supported: true,
+    test_options: {
+        unit_test: true,
+    },
     srcs: [
         ":BluetoothCommonSources",
         ":BluetoothPacketSources",
diff --git a/gd/TEST_MAPPING b/gd/TEST_MAPPING
deleted file mode 100644 (file)
index 8769cbb..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{
-  "presubmit" : [
-    {
-      "name" : "bluetooth_test_gd",
-      "host" : true
-    },
-    {
-      "name" : "bluetooth_packet_parser_test",
-      "host" : true
-    },
-    {
-      "name" : "bluetooth_flatbuffer_test",
-      "host" : true
-    }
-  ]
-}
index 74fc2d1..51cb953 100644 (file)
@@ -121,6 +121,9 @@ cc_test {
     name: "bluetooth_flatbuffer_test",
     test_suites: ["device-tests"],
     host_supported: true,
+    test_options: {
+        unit_test: true,
+    },
     static_libs: [
         "libgmock",
         "libflatbuffers-cpp",