Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c826cabc authored by Myles Watson's avatar Myles Watson
Browse files

Rust: Add a packet test

Bug: 182216573
Test: atest libbt_packets_test
Tag: #gd-refactor
Change-Id: Ia1fe07b49363b166d164811dd9aaceea05e66d48
parent dd213a65
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -547,6 +547,22 @@ rust_library {
    ],
}

rust_test_host {
    name: "libbt_packets_test",
    defaults: ["gd_rust_defaults"],
    srcs: ["rust/packets/lib.rs", ":BluetoothGeneratedPackets_rust"],
    test_suites: ["general-tests"],
    edition: "2018",
    proc_macros: ["libnum_derive"],
    rustlibs: [
        "libbytes",
        "libnum_traits",
        "libthiserror",
        "libbt_hci_custom_types",
        "liblog_rust",
    ],
}

// Generates binary schema data to be bundled and source file generated
genrule {
    name: "BluetoothGeneratedDumpsysBinarySchema_bfbs",