diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-16 02:07:48 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-16 02:07:48 +0000 |
commit | 82ac1a1c398ab933a66671846a1d53eaadf0828c (patch) | |
tree | a824ec76396cc2d9300f1af7b8b02b4918c86877 | |
parent | 1831cdc62d3f65c6e5ea6405c142e6a9c5fa3528 (diff) | |
parent | b2f88e028ac39c27f72d9024850bd629adb1acb2 (diff) | |
download | xml-rs-android13-platform-release.tar.gz |
Snap for 8006021 from b2f88e028ac39c27f72d9024850bd629adb1acb2 to tm-releaseandroid-vts-13.0_r8android-vts-13.0_r7android-vts-13.0_r6android-vts-13.0_r5android-vts-13.0_r4android-vts-13.0_r3android-vts-13.0_r2android-vts-13.0_r1android-security-13.0.0_r9android-security-13.0.0_r8android-security-13.0.0_r7android-security-13.0.0_r6android-security-13.0.0_r5android-security-13.0.0_r4android-security-13.0.0_r3android-security-13.0.0_r2android-security-13.0.0_r17android-security-13.0.0_r16android-security-13.0.0_r15android-security-13.0.0_r14android-security-13.0.0_r13android-security-13.0.0_r12android-security-13.0.0_r11android-security-13.0.0_r10android-security-13.0.0_r1android-platform-13.0.0_r9android-platform-13.0.0_r8android-platform-13.0.0_r7android-platform-13.0.0_r6android-platform-13.0.0_r5android-platform-13.0.0_r4android-platform-13.0.0_r3android-platform-13.0.0_r2android-platform-13.0.0_r19android-platform-13.0.0_r18android-platform-13.0.0_r17android-platform-13.0.0_r16android-platform-13.0.0_r15android-platform-13.0.0_r14android-platform-13.0.0_r13android-platform-13.0.0_r12android-platform-13.0.0_r11android-platform-13.0.0_r10android-platform-13.0.0_r1android-cts-13.0_r8android-cts-13.0_r7android-cts-13.0_r6android-cts-13.0_r5android-cts-13.0_r4android-cts-13.0_r3android-cts-13.0_r2android-cts-13.0_r1android-13.0.0_r8android-13.0.0_r7android-13.0.0_r6android-13.0.0_r5android-13.0.0_r4android-13.0.0_r31android-13.0.0_r3android-13.0.0_r2android-13.0.0_r12android-13.0.0_r1android13-tests-releaseandroid13-security-releaseandroid13-s3-releaseandroid13-s2-releaseandroid13-s1-releaseandroid13-releaseandroid13-platform-releaseandroid13-gsi
Change-Id: I980d2a235479db75fcfe3dc9d92cf59e101574c3
-rw-r--r-- | Android.bp | 96 | ||||
-rw-r--r-- | TEST_MAPPING | 24 |
2 files changed, 32 insertions, 88 deletions
@@ -24,6 +24,8 @@ rust_library { // has rustc warnings host_supported: true, crate_name: "xml", + cargo_env_compat: true, + cargo_pkg_version: "0.8.4", srcs: ["src/lib.rs"], edition: "2015", apex_available: [ @@ -34,9 +36,9 @@ rust_library { rust_defaults { name: "xml-rs_test_defaults", - crate_name: "xml_analyze", - // has rustc warnings - srcs: ["src/analyze.rs"], + crate_name: "xml_rs", + cargo_env_compat: true, + cargo_pkg_version: "0.8.4", test_suites: ["general-tests"], auto_gen_config: true, edition: "2015", @@ -46,61 +48,11 @@ rust_defaults { ], } -rust_test_host { - name: "xml-rs_host_test_src_analyze", - defaults: ["xml-rs_test_defaults"], - test_options: { - unit_test: true, - }, -} - rust_test { - name: "xml-rs_device_test_src_analyze", + name: "xml-rs_test_tests_event_reader", defaults: ["xml-rs_test_defaults"], -} - -rust_defaults { - name: "xml-rs_test_defaults_xml", - crate_name: "xml", - // has rustc warnings - srcs: ["src/lib.rs"], - test_suites: ["general-tests"], - auto_gen_config: true, - edition: "2015", - rustlibs: [ - "liblazy_static", - ], -} - -rust_test_host { - name: "xml-rs_host_test_src_lib", - defaults: ["xml-rs_test_defaults_xml"], - test_options: { - unit_test: true, - }, -} - -rust_test { - name: "xml-rs_device_test_src_lib", - defaults: ["xml-rs_test_defaults_xml"], -} - -rust_defaults { - name: "xml-rs_test_defaults_xml_rs", - crate_name: "xml_rs", - test_suites: ["general-tests"], - auto_gen_config: true, - edition: "2015", - rustlibs: [ - "liblazy_static", - "libxml_rust", - ], -} - -rust_test_host { - name: "xml-rs_host_test_tests_event_reader", - defaults: ["xml-rs_test_defaults_xml_rs"], // has rustc warnings + host_supported: true, srcs: ["tests/event_reader.rs"], test_options: { unit_test: true, @@ -108,16 +60,10 @@ rust_test_host { } rust_test { - name: "xml-rs_device_test_tests_event_reader", - defaults: ["xml-rs_test_defaults_xml_rs"], - // has rustc warnings - srcs: ["tests/event_reader.rs"], -} - -rust_test_host { - name: "xml-rs_host_test_tests_event_writer", - defaults: ["xml-rs_test_defaults_xml_rs"], + name: "xml-rs_test_tests_event_writer", + defaults: ["xml-rs_test_defaults"], // has rustc warnings + host_supported: true, srcs: ["tests/event_writer.rs"], test_options: { unit_test: true, @@ -126,35 +72,23 @@ rust_test_host { } rust_test { - name: "xml-rs_device_test_tests_event_writer", - defaults: ["xml-rs_test_defaults_xml_rs"], - // has rustc warnings - srcs: ["tests/event_writer.rs"], - data: ["tests/documents/*"], -} - -rust_test_host { - name: "xml-rs_host_test_tests_streaming", - defaults: ["xml-rs_test_defaults_xml_rs"], + name: "xml-rs_test_tests_streaming", + defaults: ["xml-rs_test_defaults"], // has rustc warnings + host_supported: true, srcs: ["tests/streaming.rs"], test_options: { unit_test: true, }, } -rust_test { - name: "xml-rs_device_test_tests_streaming", - defaults: ["xml-rs_test_defaults_xml_rs"], - // has rustc warnings - srcs: ["tests/streaming.rs"], -} - rust_binary { name: "xml_analyze", // has rustc warnings host_supported: true, crate_name: "xml_analyze", + cargo_env_compat: true, + cargo_pkg_version: "0.8.4", srcs: ["src/analyze.rs"], edition: "2015", rustlibs: [ diff --git a/TEST_MAPPING b/TEST_MAPPING index b2c6b9e..9843a12 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -1,26 +1,36 @@ // Generated by update_crate_tests.py for tests that depend on this crate. { + "imports": [ + { + "path": "external/rust/crates/serde-xml-rs" + } + ], "presubmit": [ { - "name": "serde-xml-rs_device_test_src_lib" + "name": "virtualizationservice_device_test" }, { - "name": "virtualizationservice_device_test" + "name": "xml-rs_test_tests_event_reader" }, { - "name": "xml-rs_device_test_src_analyze" + "name": "xml-rs_test_tests_event_writer" }, { - "name": "xml-rs_device_test_src_lib" + "name": "xml-rs_test_tests_streaming" + } + ], + "presubmit-rust": [ + { + "name": "virtualizationservice_device_test" }, { - "name": "xml-rs_device_test_tests_event_reader" + "name": "xml-rs_test_tests_event_reader" }, { - "name": "xml-rs_device_test_tests_event_writer" + "name": "xml-rs_test_tests_event_writer" }, { - "name": "xml-rs_device_test_tests_streaming" + "name": "xml-rs_test_tests_streaming" } ] } |