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", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 44 | } |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 45 | |
| 46 | cc_test { |
| 47 | name: "installd_service_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 48 | test_suites: ["device-tests"], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 49 | clang: true, |
| 50 | srcs: ["installd_service_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 51 | cflags: ["-Wall", "-Werror"], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 52 | shared_libs: [ |
| 53 | "libbase", |
| 54 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 55 | "libcrypto", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 56 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 57 | "libprocessgroup", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 58 | "libselinux", |
| 59 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 60 | "server_configurable_flags", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 61 | ], |
| 62 | static_libs: [ |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 63 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 64 | "libinstalld", |
| 65 | "liblog", |
| 66 | "liblogwrap", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 67 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame^] | 68 | test_config: "installd_service_test.xml", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 69 | } |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 70 | |
| 71 | cc_test { |
| 72 | name: "installd_dexopt_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 73 | test_suites: ["device-tests"], |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 74 | clang: true, |
| 75 | srcs: ["installd_dexopt_test.cpp"], |
| 76 | cflags: ["-Wall", "-Werror"], |
| 77 | shared_libs: [ |
| 78 | "libbase", |
| 79 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 80 | "libcrypto", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 81 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 82 | "libprocessgroup", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 83 | "libselinux", |
| 84 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 85 | "server_configurable_flags", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 86 | ], |
| 87 | static_libs: [ |
| 88 | "libdiskusage", |
| 89 | "libinstalld", |
| 90 | "liblog", |
| 91 | "liblogwrap", |
| 92 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame^] | 93 | test_config: "installd_dexopt_test.xml", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 94 | } |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 95 | |
| 96 | cc_test { |
| 97 | name: "installd_otapreopt_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 98 | test_suites: ["device-tests"], |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 99 | clang: true, |
| 100 | srcs: ["installd_otapreopt_test.cpp"], |
| 101 | cflags: ["-Wall", "-Werror"], |
| 102 | shared_libs: [ |
| 103 | "libbase", |
| 104 | "libcutils", |
| 105 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 106 | "server_configurable_flags", |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 107 | ], |
| 108 | static_libs: [ |
| 109 | "liblog", |
| 110 | "libotapreoptparameters" |
| 111 | ], |
| 112 | } |
| 113 | |