Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 1 | // Build the unit tests for installd |
| 2 | cc_test { |
| 3 | name: "installd_utils_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 4 | test_suites: ["device-tests"], |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 5 | clang: true, |
| 6 | srcs: ["installd_utils_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 7 | cflags: ["-Wall", "-Werror"], |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 8 | shared_libs: [ |
| 9 | "libbase", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 10 | "libutils", |
| 11 | "libcutils", |
| 12 | ], |
| 13 | static_libs: [ |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 14 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 15 | "libinstalld", |
| 16 | "liblog", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 17 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 18 | test_config: "installd_utils_test.xml", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 19 | } |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 20 | |
| 21 | cc_test { |
| 22 | name: "installd_cache_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 23 | test_suites: ["device-tests"], |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 24 | clang: true, |
| 25 | srcs: ["installd_cache_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 26 | cflags: ["-Wall", "-Werror"], |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 27 | shared_libs: [ |
| 28 | "libbase", |
| 29 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 30 | "libcrypto", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 31 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 32 | "libprocessgroup", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 33 | "libselinux", |
| 34 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 35 | "server_configurable_flags", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 36 | ], |
| 37 | static_libs: [ |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 38 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 39 | "libinstalld", |
| 40 | "liblog", |
| 41 | "liblogwrap", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 42 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 43 | test_config: "installd_cache_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 44 | |
| 45 | product_variables: { |
| 46 | arc: { |
| 47 | exclude_srcs: [ |
| 48 | "QuotaUtils.cpp", |
| 49 | ], |
| 50 | static_libs: [ |
| 51 | "libarcdiskquota", |
| 52 | "arc_services_aidl", |
| 53 | ], |
| 54 | cflags: [ |
| 55 | "-DUSE_ARC", |
| 56 | ], |
| 57 | }, |
| 58 | }, |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 59 | } |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 60 | |
| 61 | cc_test { |
| 62 | name: "installd_service_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 63 | test_suites: ["device-tests"], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 64 | clang: true, |
| 65 | srcs: ["installd_service_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 66 | cflags: ["-Wall", "-Werror"], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 67 | shared_libs: [ |
| 68 | "libbase", |
| 69 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 70 | "libcrypto", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 71 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 72 | "libprocessgroup", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 73 | "libselinux", |
| 74 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 75 | "server_configurable_flags", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 76 | ], |
| 77 | static_libs: [ |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 78 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 79 | "libinstalld", |
| 80 | "liblog", |
| 81 | "liblogwrap", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 82 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 83 | test_config: "installd_service_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 84 | |
| 85 | product_variables: { |
| 86 | arc: { |
| 87 | exclude_srcs: [ |
| 88 | "QuotaUtils.cpp", |
| 89 | ], |
| 90 | static_libs: [ |
| 91 | "libarcdiskquota", |
| 92 | "arc_services_aidl", |
| 93 | ], |
| 94 | cflags: [ |
| 95 | "-DUSE_ARC", |
| 96 | ], |
| 97 | }, |
| 98 | }, |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 99 | } |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 100 | |
| 101 | cc_test { |
| 102 | name: "installd_dexopt_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 103 | test_suites: ["device-tests"], |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 104 | clang: true, |
| 105 | srcs: ["installd_dexopt_test.cpp"], |
| 106 | cflags: ["-Wall", "-Werror"], |
| 107 | shared_libs: [ |
| 108 | "libbase", |
| 109 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 110 | "libcrypto", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 111 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 112 | "libprocessgroup", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 113 | "libselinux", |
| 114 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 115 | "server_configurable_flags", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 116 | ], |
| 117 | static_libs: [ |
| 118 | "libdiskusage", |
| 119 | "libinstalld", |
| 120 | "liblog", |
| 121 | "liblogwrap", |
liulvping | 6190774 | 2018-08-21 09:36:52 +0800 | [diff] [blame] | 122 | "libziparchive", |
| 123 | "libz", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 124 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 125 | test_config: "installd_dexopt_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 126 | |
| 127 | product_variables: { |
| 128 | arc: { |
| 129 | exclude_srcs: [ |
| 130 | "QuotaUtils.cpp", |
| 131 | ], |
| 132 | static_libs: [ |
| 133 | "libarcdiskquota", |
| 134 | "arc_services_aidl", |
| 135 | ], |
| 136 | cflags: [ |
| 137 | "-DUSE_ARC", |
| 138 | ], |
| 139 | }, |
| 140 | }, |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 141 | } |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 142 | |
| 143 | cc_test { |
| 144 | name: "installd_otapreopt_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 145 | test_suites: ["device-tests"], |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 146 | clang: true, |
| 147 | srcs: ["installd_otapreopt_test.cpp"], |
| 148 | cflags: ["-Wall", "-Werror"], |
| 149 | shared_libs: [ |
| 150 | "libbase", |
| 151 | "libcutils", |
| 152 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 153 | "server_configurable_flags", |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 154 | ], |
| 155 | static_libs: [ |
| 156 | "liblog", |
| 157 | "libotapreoptparameters" |
| 158 | ], |
| 159 | } |
| 160 | |