summaryrefslogtreecommitdiff
path: root/libnativebridge/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libnativebridge/tests')
-rw-r--r--libnativebridge/tests/Android.bp32
1 files changed, 29 insertions, 3 deletions
diff --git a/libnativebridge/tests/Android.bp b/libnativebridge/tests/Android.bp
index b416b0081e..f98fadc42d 100644
--- a/libnativebridge/tests/Android.bp
+++ b/libnativebridge/tests/Android.bp
@@ -186,9 +186,6 @@ cc_test {
// loaded, to avoid the problems with test_per_src and pushing the extra
// libnativebridge*-test-case.so files to device through tradefed.
srcs: [
- // ValidNameNativeBridge_test.cpp needs to be first due to global state
- // had_error that isn't reset between tests.
- "ValidNameNativeBridge_test.cpp",
"NeedsNativeBridge_test.cpp",
"UnavailableNativeBridge_test.cpp",
],
@@ -209,6 +206,35 @@ cc_test {
],
}
+// ValidNameNativeBridge_test.cpp needs to be in it own executable due
+// to global state had_error that isn't reset between tests.
+cc_test {
+ name: "art_libnativebridge_valid_name_cts_tests",
+ defaults: [
+ "art_standalone_test_defaults",
+ "libnativebridge-tests-defaults",
+ ],
+
+ srcs: [
+ "ValidNameNativeBridge_test.cpp",
+ ],
+ static_libs: [
+ "libdl_android",
+ "libnativebridge",
+ ],
+ shared_libs: [
+ "liblog",
+ ],
+ header_libs: ["libbase_headers"],
+
+ test_config_template: ":art-gtests-target-standalone-cts-template",
+ test_suites: [
+ "cts",
+ "general-tests",
+ "mts-art",
+ ],
+}
+
cc_test {
name: "libnativebridge-lazy-tests",
defaults: ["libnativebridge-tests-defaults"],