xref: /aosp_15_r20/system/apex/libs/libapexsupport/tests/Android.bp (revision 33f3758387333dbd2962d7edbd98681940d895da)
1*33f37583SAndroid Build Coastguard Workerpackage {
2*33f37583SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
3*33f37583SAndroid Build Coastguard Worker}
4*33f37583SAndroid Build Coastguard Worker
5*33f37583SAndroid Build Coastguard Workerapex_test {
6*33f37583SAndroid Build Coastguard Worker    name: "com.android.libapexsupport.tests",
7*33f37583SAndroid Build Coastguard Worker    vendor: true,
8*33f37583SAndroid Build Coastguard Worker    installable: false,
9*33f37583SAndroid Build Coastguard Worker    updatable: false,
10*33f37583SAndroid Build Coastguard Worker    manifest: "manifest.json",
11*33f37583SAndroid Build Coastguard Worker    file_contexts: "file_contexts",
12*33f37583SAndroid Build Coastguard Worker    key: "com.android.apex.vendor.foo.key",
13*33f37583SAndroid Build Coastguard Worker    certificate: ":com.android.apex.vendor.foo.certificate",
14*33f37583SAndroid Build Coastguard Worker
15*33f37583SAndroid Build Coastguard Worker    binaries: ["libapexsupport-tests"],
16*33f37583SAndroid Build Coastguard Worker}
17*33f37583SAndroid Build Coastguard Worker
18*33f37583SAndroid Build Coastguard Workercc_defaults {
19*33f37583SAndroid Build Coastguard Worker    name: "libapexsupport-tests-defaults",
20*33f37583SAndroid Build Coastguard Worker    srcs: ["libapexsupport-tests.cpp"],
21*33f37583SAndroid Build Coastguard Worker    shared_libs: ["libapexsupport"],
22*33f37583SAndroid Build Coastguard Worker}
23*33f37583SAndroid Build Coastguard Worker
24*33f37583SAndroid Build Coastguard Workercc_test {
25*33f37583SAndroid Build Coastguard Worker    name: "libapexsupport-tests",
26*33f37583SAndroid Build Coastguard Worker    defaults: ["libapexsupport-tests-defaults"],
27*33f37583SAndroid Build Coastguard Worker    stem: "libapexsupport-tests",
28*33f37583SAndroid Build Coastguard Worker    vendor: true,
29*33f37583SAndroid Build Coastguard Worker    installable: false,
30*33f37583SAndroid Build Coastguard Worker}
31*33f37583SAndroid Build Coastguard Worker
32*33f37583SAndroid Build Coastguard Workercc_test {
33*33f37583SAndroid Build Coastguard Worker    name: "libapexsupport-tests-vendor",
34*33f37583SAndroid Build Coastguard Worker    defaults: ["libapexsupport-tests-defaults"],
35*33f37583SAndroid Build Coastguard Worker    vendor: true,
36*33f37583SAndroid Build Coastguard Worker    test_suites: ["general-tests"], // not device-specific
37*33f37583SAndroid Build Coastguard Worker}
38*33f37583SAndroid Build Coastguard Worker
39*33f37583SAndroid Build Coastguard Workersh_test_host {
40*33f37583SAndroid Build Coastguard Worker    name: "libapexsupport-tests-apex",
41*33f37583SAndroid Build Coastguard Worker    src: "libapexsupport-tests.sh",
42*33f37583SAndroid Build Coastguard Worker    test_suites: ["general-tests"], // not device-specific
43*33f37583SAndroid Build Coastguard Worker    test_options: {
44*33f37583SAndroid Build Coastguard Worker        unit_test: false,
45*33f37583SAndroid Build Coastguard Worker    },
46*33f37583SAndroid Build Coastguard Worker    device_common_data: [
47*33f37583SAndroid Build Coastguard Worker        ":com.android.libapexsupport.tests",
48*33f37583SAndroid Build Coastguard Worker    ],
49*33f37583SAndroid Build Coastguard Worker}
50