Add test mapping to run some libdexfile tests at presubmit.

Need to restrict tests to host since ART gtest support isn't
implemented for device yet.

The only reason art_libdexfile_tests isn't included here is that
test_per_src makes it necessary to name each source file individually.

Test: atest -p art/libdexfile/TEST_MAPPING
Bug: 147819342
Bug: 152376507
Change-Id: I61cb72dca6767bb4c7211ef0b6a5b608d7f43a40
diff --git a/libdexfile/Android.bp b/libdexfile/Android.bp
index e85fb83..96a947a 100644
--- a/libdexfile/Android.bp
+++ b/libdexfile/Android.bp
@@ -338,6 +338,7 @@
     name: "art_libdexfile_external_tests",
     host_supported: true,
     test_per_src: true, // For consistency with other ART gtests.
+    test_suites: ["general-tests"],
     srcs: [
         "external/dex_file_ext_c_test.c",
     ],
@@ -373,6 +374,7 @@
         "art_test_defaults",
     ],
     host_supported: true,
+    test_suites: ["general-tests"],
     srcs: [
         "external/dex_file_supp_test.cc",
     ],
@@ -438,6 +440,7 @@
 art_cc_test {
     name: "art_libdexfile_support_static_tests",
     host_supported: true,
+    test_suites: ["general-tests"],
     srcs: [
         "external/dex_file_supp_test.cc",
     ],
diff --git a/libdexfile/TEST_MAPPING b/libdexfile/TEST_MAPPING
new file mode 100644
index 0000000..a171c43
--- /dev/null
+++ b/libdexfile/TEST_MAPPING
@@ -0,0 +1,16 @@
+{
+  "presubmit": [
+    {
+      "name": "art_libdexfile_external_tests_dex_file_ext_c_test",
+      "host": true
+    },
+    {
+      "name": "art_libdexfile_support_tests",
+      "host": true
+    },
+    {
+      "name": "art_libdexfile_support_static_tests",
+      "host": true
+    }
+  ]
+}