diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-11-15 21:02:00 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-15 21:02:00 +0000 |
commit | 75764c2b4b72fb8dd1ca7167f273e9d549f0c75b (patch) | |
tree | f69339e403737561d45b70940a7746bd918bfcf9 | |
parent | d13c6cee2097b975a2b1e6f2eb86bc691f5f4c2c (diff) | |
parent | 8eac4626c469a8414308616de7319d16a7911ca6 (diff) | |
download | crc32fast-75764c2b4b72fb8dd1ca7167f273e9d549f0c75b.tar.gz |
Enable tests am: 8eac4626c4
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/crc32fast/+/1871976
Change-Id: I801e99e5a348abf33736dd3c048e25fb0c36e9db
-rw-r--r-- | Android.bp | 40 | ||||
-rw-r--r-- | TEST_MAPPING | 8 | ||||
-rw-r--r-- | cargo2android.json | 5 |
3 files changed, 41 insertions, 12 deletions
@@ -37,10 +37,47 @@ license { ], } +rust_defaults { + name: "crc32fast_test_defaults", + crate_name: "crc32fast", + srcs: ["src/lib.rs"], + cargo_env_compat: true, + cargo_pkg_version: "1.2.1", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + "std", + ], + cfgs: ["crc32fast_stdarchx86"], + rustlibs: [ + "libbencher", + "libcfg_if", + "libquickcheck", + "librand", + ], +} + +rust_test_host { + name: "crc32fast_host_test_src_lib", + defaults: ["crc32fast_test_defaults"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "crc32fast_device_test_src_lib", + defaults: ["crc32fast_test_defaults"], +} + rust_library { name: "libcrc32fast", host_supported: true, crate_name: "crc32fast", + cargo_env_compat: true, + cargo_pkg_version: "1.2.1", srcs: ["src/lib.rs"], edition: "2015", features: [ @@ -56,6 +93,3 @@ rust_library { "com.android.virt", ], } - -// dependent_library ["feature_list"] -// cfg-if-1.0.0 diff --git a/TEST_MAPPING b/TEST_MAPPING index 82662b1..2f9b261 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -2,19 +2,13 @@ { "presubmit": [ { - "name": "ZipFuseTest" + "name": "crc32fast_device_test_src_lib" }, { "name": "libapkverify.integration_test" }, { "name": "libapkverify.test" - }, - { - "name": "microdroid_manager_test" - }, - { - "name": "virtualizationservice_device_test" } ] } diff --git a/cargo2android.json b/cargo2android.json index 42b7833..72ca2d4 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -5,5 +5,6 @@ ], "dependencies": true, "device": true, - "run": true -}
\ No newline at end of file + "run": true, + "tests": true +} |