aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2021-11-12 10:09:22 -0800
committerJanis Danisevskis <jdanis@google.com>2021-11-12 10:15:48 -0800
commitecade46097f94a9d7ddb11574b056321d666f942 (patch)
tree9e04777d0bfabf77cc8754d03e22175bb1acece7
parent785b0b4c6df140e8e50f398223669b704998d198 (diff)
downloadopen-dice-ecade46097f94a9d7ddb11574b056321d666f942.tar.gz
Add tests for generated rust bindings.
Test: libopen_dice_cbor_bindgen_test Test: libopen_dice_cbb_bindgen_test Change-Id: Ied44829916c8c1aee06a752696c098ea76fdbe22
-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"
+ }
+ ]
+}