diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-10-19 21:32:45 +0200 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2021-10-19 21:39:00 +0200 |
commit | 7080eb50e93caac826d15fa858f3394a5e1dfd40 (patch) | |
tree | 6451c178fd78b37754d01bf4ee0c1ee8f02e3fd9 | |
parent | faca07c8c3443821cd70f601dca4dc2dfe62e35d (diff) | |
download | tinyvec-7080eb50e93caac826d15fa858f3394a5e1dfd40.tar.gz |
Enable tests
Test: atest
-------
x86_64 tinyvec_host_test_tests_arrayvec: Passed: 14, Failed: 0, Ignored: 0, Assumption Failed: 0,
x86_64 tinyvec_host_test_tests_tinyvec: Passed: 13, Failed: 0, Ignored: 0, Assumption Failed: 0,
x86 tinyvec_device_test_tests_arrayvec: Passed: 14, Failed: 0, Ignored: 0, Assumption Failed: 0,
x86 tinyvec_device_test_tests_tinyvec: Passed: 13, Failed: 0, Ignored: 0, Assumption Failed: 0,
Change-Id: I21f07c389a824e36cd4b0e59c756c45acbd45ffc
-rw-r--r-- | Android.bp | 55 | ||||
-rw-r--r-- | TEST_MAPPING | 6 | ||||
-rw-r--r-- | cargo2android.json | 5 |
3 files changed, 64 insertions, 2 deletions
@@ -61,3 +61,58 @@ rust_library { ], min_sdk_version: "29", } + +rust_defaults { + name: "tinyvec_test_defaults", + crate_name: "tinyvec", + cargo_env_compat: true, + cargo_pkg_version: "1.4.0", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2018", + features: [ + "alloc", + "default", + "tinyvec_macros", + ], + flags: [ + "-C debug-assertions=on", + "-C opt-level=3", + ], + rustlibs: [ + "libcriterion", + "libserde_test", + "libtinyvec", + "libtinyvec_macros", + ], +} + +rust_test_host { + name: "tinyvec_host_test_tests_arrayvec", + defaults: ["tinyvec_test_defaults"], + srcs: ["tests/arrayvec.rs"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "tinyvec_device_test_tests_arrayvec", + defaults: ["tinyvec_test_defaults"], + srcs: ["tests/arrayvec.rs"], +} + +rust_test_host { + name: "tinyvec_host_test_tests_tinyvec", + defaults: ["tinyvec_test_defaults"], + srcs: ["tests/tinyvec.rs"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "tinyvec_device_test_tests_tinyvec", + defaults: ["tinyvec_test_defaults"], + srcs: ["tests/tinyvec.rs"], +} diff --git a/TEST_MAPPING b/TEST_MAPPING index bf91080..e448918 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -8,6 +8,12 @@ "name": "quiche_device_test_src_lib" }, { + "name": "tinyvec_device_test_tests_arrayvec" + }, + { + "name": "tinyvec_device_test_tests_tinyvec" + }, + { "name": "unicode-normalization_device_test_src_lib" }, { diff --git a/cargo2android.json b/cargo2android.json index 9b0c9be..b86e1c0 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -7,5 +7,6 @@ "dependencies": true, "features": "alloc,default,tinyvec_macros", "device": true, - "run": true -}
\ No newline at end of file + "run": true, + "tests": true +} |