Add tests
Test: mm
Test: atest
Change-Id: I93c6ebc1d85cadfb7b3a41aa72eb448e467c7edb
diff --git a/Android.bp b/Android.bp
index 4554652..004695d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// This file is generated by cargo2android.py --run --device --dependencies --tests.
rust_library {
name: "liblibm",
@@ -8,3 +8,31 @@
edition: "2018",
features: ["default"],
}
+
+rust_defaults {
+ name: "libm_defaults",
+ crate_name: "libm",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2018",
+ features: ["default"],
+ proc_macros: ["libno_panic"],
+}
+
+rust_test_host {
+ name: "libm_host_test_src_lib",
+ defaults: ["libm_defaults"],
+}
+
+rust_test {
+ name: "libm_device_test_src_lib",
+ defaults: ["libm_defaults"],
+}
+
+// dependent_library ["feature_list"]
+// no-panic-0.1.14
+// proc-macro2-1.0.24 "default,proc-macro"
+// quote-1.0.7 "default,proc-macro"
+// syn-1.0.54 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote"
+// unicode-xid-0.2.1 "default"
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..eca9a38
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,12 @@
+// Generated by cargo2android.py for tests in Android.bp
+{
+ "presubmit": [
+ {
+ "host": true,
+ "name": "libm_host_test_src_lib"
+ },
+ {
+ "name": "libm_device_test_src_lib"
+ }
+ ]
+}