summaryrefslogtreecommitdiff
path: root/security/dice/aidl/vts/functional/Android.bp
blob: f5bc949f11c35ab0a105054873a38beff496e3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "hardware_interfaces_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["hardware_interfaces_license"],
}

rust_test {
    name: "VtsAidlDiceTargetTest",
    srcs: [
        "dice_test.rs",
    ],
    require_root: true,
    auto_gen_config: true,
    test_suites: [
        "general-tests",
        "vts",
    ],

    rustlibs: [
        "android.hardware.security.dice-V1-rust",
        "libanyhow",
        "libbinder_rs",
        "libdiced_open_dice_cbor",
        "libdiced_sample_inputs",
        "libdiced_utils",
        "libkeystore2_vintf_rust",
    ],
}

rust_test {
    name: "VtsAidlDiceDemoteTargetTest",
    srcs: [
        "dice_demote_test.rs",
    ],

    test_config: "VtsAidlDiceDemoteTargetTest.xml",
    test_suites: [
        "general-tests",
        "vts",
    ],

    rustlibs: [
        "android.hardware.security.dice-V1-rust",
        "libanyhow",
        "libbinder_rs",
        "libdiced_open_dice_cbor",
        "libdiced_sample_inputs",
        "libdiced_utils",
        "libkeystore2_vintf_rust",
    ],
}