Home | History | Annotate | Download | only in tests
      1 // Build the unit tests for installd
      2 cc_test {
      3     name: "installd_utils_test",
      4     test_suites: ["device-tests"],
      5     clang: true,
      6     srcs: ["installd_utils_test.cpp"],
      7     cflags: ["-Wall", "-Werror"],
      8     shared_libs: [
      9         "libbase",
     10         "libutils",
     11         "libcutils",
     12     ],
     13     static_libs: [
     14         "libdiskusage",
     15         "libinstalld",
     16         "liblog",
     17     ],
     18     test_config: "installd_utils_test.xml",
     19 }
     20 
     21 cc_test {
     22     name: "installd_cache_test",
     23     test_suites: ["device-tests"],
     24     clang: true,
     25     srcs: ["installd_cache_test.cpp"],
     26     cflags: ["-Wall", "-Werror"],
     27     shared_libs: [
     28         "libbase",
     29         "libbinder",
     30         "libcrypto",
     31         "libcutils",
     32         "libprocessgroup",
     33         "libselinux",
     34         "libutils",
     35         "server_configurable_flags",
     36     ],
     37     static_libs: [
     38         "libdiskusage",
     39         "libinstalld",
     40         "liblog",
     41         "liblogwrap",
     42     ],
     43     test_config: "installd_cache_test.xml",
     44 }
     45 
     46 cc_test {
     47     name: "installd_service_test",
     48     test_suites: ["device-tests"],
     49     clang: true,
     50     srcs: ["installd_service_test.cpp"],
     51     cflags: ["-Wall", "-Werror"],
     52     shared_libs: [
     53         "libbase",
     54         "libbinder",
     55         "libcrypto",
     56         "libcutils",
     57         "libprocessgroup",
     58         "libselinux",
     59         "libutils",
     60         "server_configurable_flags",
     61     ],
     62     static_libs: [
     63         "libdiskusage",
     64         "libinstalld",
     65         "liblog",
     66         "liblogwrap",
     67     ],
     68     test_config: "installd_service_test.xml",
     69 }
     70 
     71 cc_test {
     72     name: "installd_dexopt_test",
     73     test_suites: ["device-tests"],
     74     clang: true,
     75     srcs: ["installd_dexopt_test.cpp"],
     76     cflags: ["-Wall", "-Werror"],
     77     shared_libs: [
     78         "libbase",
     79         "libbinder",
     80         "libcrypto",
     81         "libcutils",
     82         "libprocessgroup",
     83         "libselinux",
     84         "libutils",
     85         "server_configurable_flags",
     86     ],
     87     static_libs: [
     88         "libdiskusage",
     89         "libinstalld",
     90         "liblog",
     91         "liblogwrap",
     92     ],
     93     test_config: "installd_dexopt_test.xml",
     94 }
     95 
     96 cc_test {
     97     name: "installd_otapreopt_test",
     98     test_suites: ["device-tests"],
     99     clang: true,
    100     srcs: ["installd_otapreopt_test.cpp"],
    101     cflags: ["-Wall", "-Werror"],
    102     shared_libs: [
    103         "libbase",
    104         "libcutils",
    105         "libutils",
    106         "server_configurable_flags",
    107     ],
    108     static_libs: [
    109         "liblog",
    110         "libotapreoptparameters"
    111     ],
    112 }
    113 
    114