1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21sh_test {
22    name: "vts_ltp_test_arm_64",
23    src: "phony_ltp_test_arm64.sh",
24    test_suites: ["vts"],
25    test_config: ":ltp_config_arm_64",
26}
27
28genrule {
29    name: "ltp_config_arm_64",
30    out: ["vts_ltp_test_arm_64.xml"],
31    tool_files: [
32        "tools/gen_ltp_config.py",
33        "tools/**/*.py",
34        "tools/template/template.xml",
35    ],
36    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False False $(out)",
37}
38
39sh_test {
40    name: "vts_ltp_test_arm_64_lowmem",
41    src: "phony_ltp_test_arm64_lowmem.sh",
42    test_suites: ["vts"],
43    test_config: ":ltp_config_arm_64_lowmem",
44}
45
46genrule {
47    name: "ltp_config_arm_64_lowmem",
48    out: ["vts_ltp_test_arm_64_lowmem.xml"],
49    tool_files: [
50        "tools/gen_ltp_config.py",
51        "tools/**/*.py",
52        "tools/template/template.xml",
53    ],
54    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True False $(out)",
55}
56
57sh_test {
58    name: "vts_ltp_test_arm_64_hwasan",
59    src: "phony_ltp_test_arm64_hwasan.sh",
60    test_suites: ["vts"],
61    test_config: ":ltp_config_arm_64_hwasan",
62}
63
64genrule {
65    name: "ltp_config_arm_64_hwasan",
66    out: ["vts_ltp_test_arm_64_hwasan.xml"],
67    tool_files: [
68        "tools/gen_ltp_config.py",
69        "tools/**/*.py",
70        "tools/template/template.xml",
71    ],
72    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False True $(out)",
73}
74
75sh_test {
76    name: "vts_ltp_test_arm_64_lowmem_hwasan",
77    src: "phony_ltp_test_arm64_lowmem_hwasan.sh",
78    test_suites: ["vts"],
79    test_config: ":ltp_config_arm_64_lowmem_hwasan",
80}
81
82genrule {
83    name: "ltp_config_arm_64_lowmem_hwasan",
84    out: ["vts_ltp_test_arm_64_lowmem_hwasan.xml"],
85    tool_files: [
86        "tools/gen_ltp_config.py",
87        "tools/**/*.py",
88        "tools/template/template.xml",
89    ],
90    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True True $(out)",
91}
92
93sh_test {
94    name: "vts_ltp_test_arm",
95    src: "phony_ltp_test_arm.sh",
96    test_suites: ["vts"],
97    test_config: ":ltp_config_arm",
98}
99
100genrule {
101    name: "ltp_config_arm",
102    out: ["vts_ltp_test_arm.xml"],
103    tool_files: [
104        "tools/gen_ltp_config.py",
105        "tools/**/*.py",
106        "tools/template/template.xml",
107    ],
108    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 False False $(out)",
109}
110
111sh_test {
112    name: "vts_ltp_test_arm_lowmem",
113    src: "phony_ltp_test_arm_lowmem.sh",
114    test_suites: ["vts"],
115    test_config: ":ltp_config_arm_lowmem",
116}
117
118genrule {
119    name: "ltp_config_arm_lowmem",
120    out: ["vts_ltp_test_arm_lowmem.xml"],
121    tool_files: [
122        "tools/gen_ltp_config.py",
123        "tools/**/*.py",
124        "tools/template/template.xml",
125    ],
126    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 True False $(out)",
127}
128
129sh_test {
130    name: "vts_ltp_test_x86_64",
131    src: "phony_ltp_test_x86_64.sh",
132    test_suites: ["vts"],
133    test_config: ":ltp_config_x86_64",
134}
135
136genrule {
137    name: "ltp_config_x86_64",
138    out: ["vts_ltp_test_x86_64.xml"],
139    tool_files: [
140        "tools/gen_ltp_config.py",
141        "tools/**/*.py",
142        "tools/template/template.xml",
143    ],
144    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) x86 64 False False $(out)",
145}
146
147sh_test {
148    name: "vts_ltp_test_x86",
149    src: "phony_ltp_test_x86.sh",
150    test_suites: ["vts"],
151    test_config: ":ltp_config_x86",
152}
153
154genrule {
155    name: "ltp_config_x86",
156    out: ["vts_ltp_test_x86.xml"],
157    tool_files: [
158        "tools/gen_ltp_config.py",
159        "tools/**/*.py",
160        "tools/template/template.xml",
161    ],
162    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) x86 32 False False $(out)",
163}
164