Android.bp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. cc_test {
  21. name: "installd_cache_test",
  22. test_suites: ["device-tests"],
  23. clang: true,
  24. srcs: ["installd_cache_test.cpp"],
  25. cflags: ["-Wall", "-Werror"],
  26. shared_libs: [
  27. "libbase",
  28. "libbinder",
  29. "libcrypto",
  30. "libcutils",
  31. "libprocessgroup",
  32. "libselinux",
  33. "libutils",
  34. "server_configurable_flags",
  35. ],
  36. static_libs: [
  37. "libdiskusage",
  38. "libinstalld",
  39. "liblog",
  40. "liblogwrap",
  41. ],
  42. test_config: "installd_cache_test.xml",
  43. }
  44. cc_test {
  45. name: "installd_service_test",
  46. test_suites: ["device-tests"],
  47. clang: true,
  48. srcs: ["installd_service_test.cpp"],
  49. cflags: ["-Wall", "-Werror"],
  50. shared_libs: [
  51. "libbase",
  52. "libbinder",
  53. "libcrypto",
  54. "libcutils",
  55. "libprocessgroup",
  56. "libselinux",
  57. "libutils",
  58. "server_configurable_flags",
  59. ],
  60. static_libs: [
  61. "libdiskusage",
  62. "libinstalld",
  63. "liblog",
  64. "liblogwrap",
  65. ],
  66. test_config: "installd_service_test.xml",
  67. }
  68. cc_test {
  69. name: "installd_dexopt_test",
  70. test_suites: ["device-tests"],
  71. clang: true,
  72. srcs: ["installd_dexopt_test.cpp"],
  73. cflags: ["-Wall", "-Werror"],
  74. shared_libs: [
  75. "libbase",
  76. "libbinder",
  77. "libcrypto",
  78. "libcutils",
  79. "libprocessgroup",
  80. "libselinux",
  81. "libutils",
  82. "server_configurable_flags",
  83. ],
  84. static_libs: [
  85. "libdiskusage",
  86. "libinstalld",
  87. "liblog",
  88. "liblogwrap",
  89. ],
  90. test_config: "installd_dexopt_test.xml",
  91. }
  92. cc_test {
  93. name: "installd_otapreopt_test",
  94. test_suites: ["device-tests"],
  95. clang: true,
  96. srcs: ["installd_otapreopt_test.cpp"],
  97. cflags: ["-Wall", "-Werror"],
  98. shared_libs: [
  99. "libbase",
  100. "libcutils",
  101. "libutils",
  102. "server_configurable_flags",
  103. ],
  104. static_libs: [
  105. "liblog",
  106. "libotapreoptparameters"
  107. ],
  108. }