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