aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2021-11-12 23:51:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-12 23:51:49 +0000
commitfe0d6dc09b6010ab633f1516c58fb22bf57b94b9 (patch)
tree9e04777d0bfabf77cc8754d03e22175bb1acece7
parenta49d73e90a53b3b8adf2e586fb22349f111aeebe (diff)
parent890d296855d5a42673348db9de65649f146b930b (diff)
downloadopen-dice-fe0d6dc09b6010ab633f1516c58fb22bf57b94b9.tar.gz
Add tests for generated rust bindings. am: ecade46097 am: 890d296855
Original change: https://android-review.googlesource.com/c/platform/external/open-dice/+/1890804 Change-Id: Iddfc827e3f18d4abfe79b8bb0d59e5fddfaaf456
-rw-r--r--Android.bp24
-rw-r--r--TEST_MAPPING10
2 files changed, 34 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index ae655a8..86fe55c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -207,3 +207,27 @@ rust_bindgen {
host_supported: true,
vendor_available: true,
}
+
+rust_test {
+ name: "libopen_dice_cbor_bindgen_test",
+ srcs: [
+ ":libopen_dice_cbor_bindgen",
+ ],
+ crate_name: "open_dice_cbor_bindgen_test",
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ clippy_lints: "none",
+ lints: "none",
+}
+
+rust_test {
+ name: "libopen_dice_bcc_bindgen_test",
+ srcs: [
+ ":libopen_dice_bcc_bindgen",
+ ],
+ crate_name: "open_dice_bcc_bindgen_test",
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ clippy_lints: "none",
+ lints: "none",
+}
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..507c7f5
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,10 @@
+{
+ "presubmit": [
+ {
+ "name": "libopen_dice_cbor_bindgen_test"
+ },
+ {
+ "name": "libopen_dice_bcc_bindgen_test"
+ }
+ ]
+}