diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2020-05-27 20:47:57 +0000 |
---|---|---|
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | 2020-05-27 20:47:57 +0000 |
commit | bf81bb22c2286b7c01ab9b005a3b5065dee52689 (patch) | |
tree | 8d8fc468a6d5cc67e70f968c9cd2080310f13c7f | |
parent | 210e1bfc543023d06763707efdde7dad52b44172 (diff) | |
parent | 4a07afab395e6fa7515c3519440c66207799c322 (diff) | |
download | slab-platform-tools-30.0.2.tar.gz |
Snap for 6533464 from 4a07afab395e6fa7515c3519440c66207799c322 to sdk-releaseplatform-tools-30.0.3platform-tools-30.0.2
Change-Id: I6701461fe0d5774d7c2778edbfe6b73659288af1
-rw-r--r-- | Android.bp | 21 | ||||
-rw-r--r-- | TEST_MAPPING | 14 |
2 files changed, 35 insertions, 0 deletions
@@ -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", + ], +} diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..356d954 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,14 @@ +{ + "presubmit": [ + { + // Test name is module name because it has the crate_name suffix. + "name": "slab_tests_slab", + "host": true + }, + { + // Default test name is module name + '_' + crate_name. + "name": "slab_tests_slab1_slab", + "host": true + } + ] +} |