aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-05-07 14:46:02 -0700
committerChih-Hung Hsieh <chh@google.com>2020-05-07 16:03:02 -0700
commit4a07afab395e6fa7515c3519440c66207799c322 (patch)
tree8d8fc468a6d5cc67e70f968c9cd2080310f13c7f /Android.bp
parent467e34c698f25cd8a596ca3f894d0ec0dcf84452 (diff)
downloadslab-4a07afab395e6fa7515c3519440c66207799c322.tar.gz
Add rust_test modules and TEST_MAPPING
* Two 'slab' tests in src and tests directory cannot be merged. So they have different module names. Bug: 156009151 Test: atest --host --rebuild-module-info -c --include-subdirs external/rust/crates Change-Id: I988a4129d9ed1ff627d98ce6dba990fbdd549262
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index f22b235..b7ab767 100644
--- a/Android.bp
+++ b/Android.bp
@@ -6,3 +6,24 @@ rust_library_host_rlib {
srcs: ["src/lib.rs"],
edition: "2015",
}
+
+rust_test_host {
+ name: "slab_tests_slab",
+ crate_name: "slab",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2015",
+}
+
+rust_test_host {
+ name: "slab_tests_slab1",
+ crate_name: "slab",
+ srcs: ["tests/slab.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2015",
+ rlibs: [
+ "libslab",
+ ],
+}