diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-11-15 21:27:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-15 21:27:33 +0000 |
commit | af5c15898f36f951697456e1a3e10f1ccb5c65ce (patch) | |
tree | f69339e403737561d45b70940a7746bd918bfcf9 | |
parent | 88bf1a4a4e909a25f24eb03e6a3db6976eca3ba6 (diff) | |
parent | 4df45b2d42c54e0ad209b90994dbddf3d12de3ac (diff) | |
download | crc32fast-af5c15898f36f951697456e1a3e10f1ccb5c65ce.tar.gz |
Enable tests am: 8eac4626c4 am: 75764c2b4b am: 4df45b2d42
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/crc32fast/+/1871976
Change-Id: I6f301f52365150df5f38c6599f4d2e2d50c1516b
-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 +} |