aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 02:06:26 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 02:06:26 +0000
commit02dbe2355d7797aea18a9cdd3616f2a8626ac110 (patch)
tree7aade84519300d0c3b97ce490f9b4bd576b4666b
parentb30c85f87b75dd852829346c15daa92a2d71ed0b (diff)
parent1ef7aff532dc6c0e39b17915ff36da5518b37291 (diff)
downloadregex-syntax-02dbe2355d7797aea18a9cdd3616f2a8626ac110.tar.gz
Snap for 8006021 from 1ef7aff532dc6c0e39b17915ff36da5518b37291 to tm-d1-release
Change-Id: Iec0cee668dddd8b9d9bbeb788697de63561324be
-rw-r--r--Android.bp25
-rw-r--r--TEST_MAPPING35
-rw-r--r--cargo2android.json2
3 files changed, 35 insertions, 27 deletions
diff --git a/Android.bp b/Android.bp
index 33db522..e6b1a2e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -42,6 +42,8 @@ rust_library {
name: "libregex_syntax",
host_supported: true,
crate_name: "regex_syntax",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.6.25",
srcs: ["src/lib.rs"],
edition: "2018",
features: [
@@ -61,12 +63,18 @@ rust_library {
],
}
-rust_defaults {
- name: "regex-syntax_defaults",
+rust_test {
+ name: "regex-syntax_test_src_lib",
+ host_supported: true,
crate_name: "regex_syntax",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.6.25",
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
edition: "2018",
features: [
"default",
@@ -80,16 +88,3 @@ rust_defaults {
"unicode-segment",
],
}
-
-rust_test_host {
- name: "regex-syntax_host_test_src_lib",
- defaults: ["regex-syntax_defaults"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "regex-syntax_device_test_src_lib",
- defaults: ["regex-syntax_defaults"],
-}
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 33a6ca8..a91d799 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,35 +1,48 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
+ "imports": [
{
- "name": "base64_device_test_tests_decode"
+ "path": "external/rust/crates/base64"
},
{
- "name": "base64_device_test_tests_encode"
+ "path": "external/rust/crates/libsqlite3-sys"
},
{
- "name": "base64_device_test_tests_helpers"
+ "path": "external/rust/crates/once_cell"
},
{
- "name": "keystore2_test"
+ "path": "external/rust/crates/regex"
},
{
- "name": "legacykeystore_test"
+ "path": "external/rust/crates/tinytemplate"
},
{
- "name": "libsqlite3-sys_device_test_src_lib"
+ "path": "external/rust/crates/tinyvec"
+ },
+ {
+ "path": "external/rust/crates/unicode-xid"
+ }
+ ],
+ "presubmit": [
+ {
+ "name": "keystore2_test"
},
{
- "name": "libsqlite3_bindgen_test"
+ "name": "legacykeystore_test"
},
{
- "name": "regex-syntax_device_test_src_lib"
+ "name": "regex-syntax_test_src_lib"
+ }
+ ],
+ "presubmit-rust": [
+ {
+ "name": "keystore2_test"
},
{
- "name": "unicode-xid_device_test_src_lib"
+ "name": "legacykeystore_test"
},
{
- "name": "unicode-xid_device_test_tests_exhaustive_tests"
+ "name": "regex-syntax_test_src_lib"
}
]
}
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