blob: 78500af6b44b26d70cf75a5e8d3e8bdbdd74c905 [file] [log] [blame]
Jiyong Parkdfa3aec2021-03-09 20:32:15 +09001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Jaewan Kim2cf6f392023-02-10 01:35:47 +09005genrule_defaults {
6 name: "test_avf_debug_policy_overlay",
7 tools: ["dtc"],
8 cmd: "$(location dtc) -I dts -O dtb $(in) -o $(out)",
9}
10
11genrule {
12 name: "test_avf_debug_policy_with_ramdump",
13 defaults: ["test_avf_debug_policy_overlay"],
14 srcs: ["assets/avf_debug_policy_with_ramdump.dts"],
15 out: ["avf_debug_policy_with_ramdump.dtbo"],
16}
17
18genrule {
19 name: "test_avf_debug_policy_without_ramdump",
20 defaults: ["test_avf_debug_policy_overlay"],
21 srcs: ["assets/avf_debug_policy_without_ramdump.dts"],
22 out: ["avf_debug_policy_without_ramdump.dtbo"],
23}
24
Jaewan Kimc03f6612023-02-20 00:06:26 +090025genrule {
26 name: "test_avf_debug_policy_with_console_output",
27 defaults: ["test_avf_debug_policy_overlay"],
28 srcs: ["assets/avf_debug_policy_with_console_output.dts"],
29 out: ["avf_debug_policy_with_console_output.dtbo"],
30}
31
32genrule {
33 name: "test_avf_debug_policy_without_console_output",
34 defaults: ["test_avf_debug_policy_overlay"],
35 srcs: ["assets/avf_debug_policy_without_console_output.dts"],
36 out: ["avf_debug_policy_without_console_output.dtbo"],
37}
38
Jaewan Kimb24d1dc2023-02-13 15:34:56 +090039genrule {
40 name: "test_avf_debug_policy_with_adb",
41 defaults: ["test_avf_debug_policy_overlay"],
42 srcs: ["assets/avf_debug_policy_with_adb.dts"],
43 out: ["avf_debug_policy_with_adb.dtbo"],
44}
45
46genrule {
47 name: "test_avf_debug_policy_without_adb",
48 defaults: ["test_avf_debug_policy_overlay"],
49 srcs: ["assets/avf_debug_policy_without_adb.dts"],
50 out: ["avf_debug_policy_without_adb.dtbo"],
51}
52
Jiyong Parkdfa3aec2021-03-09 20:32:15 +090053java_test_host {
54 name: "MicrodroidHostTestCases",
55 srcs: ["java/**/*.java"],
Jiyong Park29de5172022-02-08 00:37:05 +090056 test_suites: [
57 "cts",
58 "general-tests",
59 ],
Jiyong Park6de08572021-06-14 21:13:32 +090060 libs: [
Jaewan Kim2cf6f392023-02-10 01:35:47 +090061 "androidx.annotation_annotation",
Jiyong Park6de08572021-06-14 21:13:32 +090062 "tradefed",
Victor Hsiehccce5492021-06-30 14:25:42 -070063 ],
64 static_libs: [
David Brazdilf9fe9a02022-07-22 15:36:02 +010065 "MicrodroidHostTestHelper",
Jiyong Park5517b102022-07-11 16:09:19 +090066 "compatibility-host-util",
Seungjae Yoo1b8a7d12022-08-12 04:44:52 +000067 "cts-statsd-atom-host-test-utils",
Jooyung Han62fe1b42023-02-15 17:49:17 +090068 "microdroid_payload_metadata",
Jiyong Park6de08572021-06-14 21:13:32 +090069 ],
Jiyong Park29de5172022-02-08 00:37:05 +090070 per_testcase_directory: true,
Inseob Kim3ac5c112022-02-09 22:57:11 +090071 data: [
72 ":MicrodroidTestApp",
73 ":microdroid_general_sepolicy.conf",
Jooyung Han6afd6672022-02-22 05:22:23 +090074 ":test.com.android.virt.pem",
Jooyung Han1c3d2fa2022-02-24 02:35:59 +090075 ":test2.com.android.virt.pem",
Jaewan Kim2cf6f392023-02-10 01:35:47 +090076 ":pvmfw_test",
77 ":test_avf_debug_policy_with_ramdump",
78 ":test_avf_debug_policy_without_ramdump",
Jaewan Kimc03f6612023-02-20 00:06:26 +090079 ":test_avf_debug_policy_with_console_output",
80 ":test_avf_debug_policy_without_console_output",
Jaewan Kimb24d1dc2023-02-13 15:34:56 +090081 ":test_avf_debug_policy_with_adb",
82 ":test_avf_debug_policy_without_adb",
Jaewan Kim2cf6f392023-02-10 01:35:47 +090083 "assets/bcc.dat",
Inseob Kim3ac5c112022-02-09 22:57:11 +090084 ],
Jooyung Han6afd6672022-02-22 05:22:23 +090085 data_native_bins: [
86 "sepolicy-analyze",
87 // For re-sign test
88 "avbtool",
89 "img2simg",
Shikha Panwara7605cf2023-01-12 09:29:39 +000090 "initrd_bootconfig",
Jooyung Han6afd6672022-02-22 05:22:23 +090091 "lpmake",
92 "lpunpack",
93 "sign_virt_apex",
94 "simg2img",
95 ],
96 // java_test_host doesn't have data_native_libs but jni_libs can be used to put
97 // native modules under ./lib directory.
98 // This works because host tools have rpath (../lib and ./lib).
99 jni_libs: [
100 "libbase",
101 "libc++",
102 "libcrypto_utils",
103 "libcrypto",
104 "libext4_utils",
105 "liblog",
106 "liblp",
107 "libsparse",
108 "libz",
109 ],
Jiyong Parkdfa3aec2021-03-09 20:32:15 +0900110}