diff options
-rw-r--r-- | Android.bp | 47 | ||||
-rw-r--r-- | TEST_MAPPING | 12 |
2 files changed, 59 insertions, 0 deletions
@@ -1,5 +1,52 @@ // This file is generated by cargo2android.py. +rust_test_host { + name: "libc_tests_const_fn", + crate_name: "const_fn", + srcs: ["tests/const_fn.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + "std", + ], + flags: [ + "--cfg freebsd11", + "--cfg libc_align", + "--cfg libc_const_size_of", + "--cfg libc_core_cvoid", + "--cfg libc_packedN", + "--cfg libc_priv_mod_use", + "--cfg libc_union", + ], + rlibs: [ + "liblibc", + ], +} + +rust_test_host { + name: "libc_tests_libc", + crate_name: "libc", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + "std", + ], + flags: [ + "--cfg freebsd11", + "--cfg libc_align", + "--cfg libc_const_size_of", + "--cfg libc_core_cvoid", + "--cfg libc_packedN", + "--cfg libc_priv_mod_use", + "--cfg libc_union", + ], +} + rust_library_rlib { name: "liblibc", host_supported: true, diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 00000000..299cdd06 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,12 @@ +{ + "presubmit": [ + { + "name": "libc_tests_const_fn", + "host": true + }, + { + "name": "libc_tests_libc", + "host": true + } + ] +} |