Move jemalloc to cc_test (without gtest)
cc_test now supports non-gtest tests (that get installed like gtests).
The jemalloc unit and integration tests are like this.
Change-Id: I77280eb37846afbd9d62cb41e284c5ab689a6dcb
diff --git a/Android.bp b/Android.bp
index 46bb674..14978e4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -224,10 +224,10 @@
"test/unit/zero.c",
]
-cc_binary {
+cc_test {
name: "jemalloc_unittests",
- // ANDROIDMK TRANSLATION ERROR: unsupported assignment to LOCAL_MODULE_PATH
- // LOCAL_MODULE_PATH:=$(TARGET_OUT_DATA_NATIVE_TESTS)/jemalloc_unittests
+
+ gtest: false,
cflags: common_cflags + ["-DJEMALLOC_UNIT_TEST"],
@@ -297,11 +297,11 @@
"test/integration/xallocx.c",
]
-cc_binary {
+cc_test {
name: "jemalloc_integrationtests",
- // ANDROIDMK TRANSLATION ERROR: unsupported assignment to LOCAL_MODULE_PATH
- // LOCAL_MODULE_PATH:=$(TARGET_OUT_DATA_NATIVE_TESTS)/jemalloc_integrationtests
+
+ gtest: false,
cflags: common_cflags + ["-DJEMALLOC_INTEGRATION_TEST"],