diff options
author | Joel Galenson <jgalenson@google.com> | 2021-11-10 18:10:23 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-10 18:10:23 +0000 |
commit | b93bce14b07c31f719295f907a96435757e90f47 (patch) | |
tree | 19ac3ff10a0a8ee2dbc8094443e7ba62668ed20b | |
parent | 7b11d818053c56c698fb7204615bc1f988759fce (diff) | |
parent | 3455df3f16bbeef9e129b37b2a13d18cb1fc8b08 (diff) | |
download | libc-b93bce14b07c31f719295f907a96435757e90f47.tar.gz |
Add back missing tests. am: 3455df3f16
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libc/+/1886798
Change-Id: Ia4d3c2c8e01658100da19b59827136f4df2463b3
-rw-r--r-- | Android.bp | 81 |
1 files changed, 81 insertions, 0 deletions
@@ -37,6 +37,87 @@ license { ], } +rust_defaults { + name: "rust_libc_test_defaults", + crate_name: "libc", + srcs: ["src/lib.rs"], + cargo_env_compat: true, + cargo_pkg_version: "0.2.102", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + "extra_traits", + "std", + ], + cfgs: [ + "freebsd11", + "libc_align", + "libc_cfg_target_vendor", + "libc_const_size_of", + "libc_core_cvoid", + "libc_packedN", + "libc_priv_mod_use", + "libc_union", + ], +} + +rust_test_host { + name: "libc_host_test_src_lib", + defaults: ["rust_libc_test_defaults"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "libc_device_test_src_lib", + defaults: ["rust_libc_test_defaults"], +} + +rust_defaults { + name: "rust_libc_test_defaults_const_fn", + crate_name: "const_fn", + srcs: ["tests/const_fn.rs"], + cargo_env_compat: true, + cargo_pkg_version: "0.2.102", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + "extra_traits", + "std", + ], + cfgs: [ + "freebsd11", + "libc_align", + "libc_cfg_target_vendor", + "libc_const_size_of", + "libc_core_cvoid", + "libc_packedN", + "libc_priv_mod_use", + "libc_union", + ], + rustlibs: [ + "liblibc", + ], +} + +rust_test_host { + name: "libc_host_test_tests_const_fn", + defaults: ["rust_libc_test_defaults_const_fn"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "libc_device_test_tests_const_fn", + defaults: ["rust_libc_test_defaults_const_fn"], +} + rust_library { name: "liblibc", host_supported: true, |