aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2021-11-12 23:39:13 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-12 23:39:13 +0000
commit890d296855d5a42673348db9de65649f146b930b (patch)
tree9e04777d0bfabf77cc8754d03e22175bb1acece7
parent69525faa957d46ed997d89b63276c5b5abede727 (diff)
parentecade46097f94a9d7ddb11574b056321d666f942 (diff)
downloadopen-dice-890d296855d5a42673348db9de65649f146b930b.tar.gz
Add tests for generated rust bindings. am: ecade46097
Original change: https://android-review.googlesource.com/c/platform/external/open-dice/+/1890804 Change-Id: I2957edf215bc9ef93390456efe91db9057596aba
-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"
+ }
+ ]
+}