aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-01-06 18:48:02 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-01-06 18:48:02 +0000
commit183d030486262ac523ea2b1d6f995cc355d6ae97 (patch)
tree3b1504f99e3af24d7ff3099804413156a07ffab5
parent5f75dcd4be2fcaaf6c055da8b7dc23910fc0fa5f (diff)
parent0d5e3d854bcd7c30a0148d2a18ac403dee768a95 (diff)
downloaditoa-183d030486262ac523ea2b1d6f995cc355d6ae97.tar.gz
Snap for 8050040 from 0d5e3d854bcd7c30a0148d2a18ac403dee768a95 to simpleperf-release
Change-Id: I4695fa0cbea4d501d8f6db4f5a3e7350e3fd3170
-rw-r--r--Android.bp23
-rw-r--r--TEST_MAPPING48
-rw-r--r--cargo2android.json2
3 files changed, 43 insertions, 30 deletions
diff --git a/Android.bp b/Android.bp
index a82df7f..6027693 100644
--- a/Android.bp
+++ b/Android.bp
@@ -38,14 +38,18 @@ license {
],
}
-rust_defaults {
- name: "itoa_test_defaults",
+rust_test {
+ name: "itoa_test_tests_test",
+ host_supported: true,
crate_name: "test",
- srcs: ["tests/test.rs"],
cargo_env_compat: true,
cargo_pkg_version: "0.4.8",
+ srcs: ["tests/test.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
edition: "2015",
features: [
"default",
@@ -56,19 +60,6 @@ rust_defaults {
],
}
-rust_test_host {
- name: "itoa_host_test_tests_test",
- defaults: ["itoa_test_defaults"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "itoa_device_test_tests_test",
- defaults: ["itoa_test_defaults"],
-}
-
rust_library {
name: "libitoa",
host_supported: true,
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 82e93e3..9095ded 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,41 +1,63 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
+ "imports": [
+ {
+ "path": "external/rust/crates/base64"
+ },
+ {
+ "path": "external/rust/crates/bitflags"
+ },
+ {
+ "path": "external/rust/crates/either"
+ },
{
- "name": "base64_device_test_tests_decode"
+ "path": "external/rust/crates/rand_chacha"
},
{
- "name": "base64_device_test_tests_encode"
+ "path": "external/rust/crates/tinytemplate"
},
{
- "name": "base64_device_test_tests_helpers"
+ "path": "external/rust/crates/tinyvec"
},
{
- "name": "bitflags_device_test_src_lib"
+ "path": "external/rust/crates/unicode-xid"
},
{
- "name": "bitflags_device_test_tests_basic"
+ "path": "external/rust/crates/url"
+ }
+ ],
+ "presubmit": [
+ {
+ "name": "ZipFuseTest"
},
{
- "name": "either_device_test_src_lib"
+ "name": "authfs_device_test_src_lib"
},
{
- "name": "itoa_device_test_tests_test"
+ "name": "itoa_test_tests_test"
},
{
- "name": "unicode-xid_device_test_src_lib"
+ "name": "microdroid_manager_test"
+ },
+ {
+ "name": "virtualizationservice_device_test"
+ }
+ ],
+ "presubmit-rust": [
+ {
+ "name": "ZipFuseTest"
},
{
- "name": "unicode-xid_device_test_tests_exhaustive_tests"
+ "name": "authfs_device_test_src_lib"
},
{
- "name": "url_device_test_src_lib"
+ "name": "itoa_test_tests_test"
},
{
- "name": "url_device_test_tests_data"
+ "name": "microdroid_manager_test"
},
{
- "name": "url_device_test_tests_unit"
+ "name": "virtualizationservice_device_test"
}
]
}
diff --git a/cargo2android.json b/cargo2android.json
index 72ca2d4..ac56e26 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -7,4 +7,4 @@
"device": true,
"run": true,
"tests": true
-}
+} \ No newline at end of file