diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-10-19 20:16:23 +0200 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2021-10-19 20:16:23 +0200 |
commit | 9c82f72e3a41e2b5370323f9718caf5e777cb509 (patch) | |
tree | 018cfba3d6980855b503bb2afcb9470c42a75e59 | |
parent | ea0e4d6e63b394ef2cec073c85b0a4e66537fcc7 (diff) | |
download | termcolor-9c82f72e3a41e2b5370323f9718caf5e777cb509.tar.gz |
Test: atest
-------
x86_64 termcolor_host_test_src_lib: Passed: 13, Failed: 0, Ignored: 0, Assumption Failed: 0,
x86 termcolor_device_test_src_lib: Passed: 13, Failed: 0, Ignored: 0, Assumption Failed: 0,
Change-Id: Ia8698b0f93e75c38d6fe0fd4d64f68a543521ff5
-rw-r--r-- | Android.bp | 29 | ||||
-rw-r--r-- | TEST_MAPPING | 17 |
2 files changed, 45 insertions, 1 deletions
@@ -1,4 +1,5 @@ -// This file is generated by cargo2android.py --run --device --dependencies. +// This file is generated by cargo2android.py --run --device --dependencies --tests. +// Do not modify this file as changes will be overridden on upgrade. package { default_applicable_licenses: ["external_rust_crates_termcolor_license"], @@ -41,6 +42,32 @@ rust_library { name: "libtermcolor", host_supported: true, crate_name: "termcolor", + cargo_env_compat: true, + cargo_pkg_version: "1.1.2", srcs: ["src/lib.rs"], edition: "2018", } + +rust_defaults { + name: "termcolor_test_defaults", + crate_name: "termcolor", + srcs: ["src/lib.rs"], + cargo_env_compat: true, + cargo_pkg_version: "1.1.2", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2018", +} + +rust_test_host { + name: "termcolor_host_test_src_lib", + defaults: ["termcolor_test_defaults"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "termcolor_device_test_src_lib", + defaults: ["termcolor_test_defaults"], +} diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..42044bd --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,17 @@ +// Generated by update_crate_tests.py for tests that depend on this crate. +{ + "presubmit": [ + { + "name": "keystore2_test" + }, + { + "name": "keystore2_vintf_test" + }, + { + "name": "legacykeystore_test" + }, + { + "name": "termcolor_device_test_src_lib" + } + ] +} |