Add libnativeloader test to CTS for API coverage.

Test: m cts cts-tradefed
      cts-tradefed run commandAndExit cts \
        --module libnativeloader_test
Test: atest libnativeloader_test
Bug: 208464250
Change-Id: I70b613a67fcd1acbd83aa479dc7902c4558f74b9
diff --git a/libnativeloader/Android.bp b/libnativeloader/Android.bp
index 6a47b81..7352be2 100644
--- a/libnativeloader/Android.bp
+++ b/libnativeloader/Android.bp
@@ -149,7 +149,10 @@
 
 art_cc_test {
     name: "libnativeloader_test",
-    defaults: ["libnativeloader-test-defaults"],
+    defaults: [
+        "art_standalone_test_defaults",
+        "libnativeloader-test-defaults",
+    ],
     srcs: [
         "native_loader_api_test.c",
         "native_loader_test.cpp",
@@ -157,6 +160,24 @@
     shared_libs: [
         "libnativeloader",
     ],
+
+    // Support multilib variants (using different suffix per sub-architecture), which is needed on
+    // build targets with secondary architectures, as the CTS test suite packaging logic flattens
+    // all test artifacts into a single `testcases` directory.
+    compile_multilib: "both",
+    multilib: {
+        lib32: {
+            suffix: "32",
+        },
+        lib64: {
+            suffix: "64",
+        },
+    },
+
+    // Added to CTS for API coverage of libnativeloader which is backed by the
+    // ART module.
+    test_config_template: ":art-gtests-target-standalone-cts-template",
+    test_suites: ["cts"],
 }
 
 art_cc_test {