• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: [
25        "general-tests",
26        "vts"
27    ],
28    test_config: ":ltp_config_arm_64",
29}
30
31genrule {
32    name: "ltp_config_arm_64",
33    out: ["vts_ltp_test_arm_64.xml"],
34    tool_files: [
35        "tools/gen_ltp_config.py",
36        "tools/**/*.py",
37        "tools/template/template.xml",
38    ],
39    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch arm --bitness 64 --low-mem False --hwasan False $(out)",
40}
41
42sh_test {
43    name: "vts_ltp_test_arm_64_lowmem",
44    src: "phony_ltp_test_arm64_lowmem.sh",
45    test_suites: [
46        "general-tests",
47        "vts"
48    ],
49    test_config: ":ltp_config_arm_64_lowmem",
50}
51
52genrule {
53    name: "ltp_config_arm_64_lowmem",
54    out: ["vts_ltp_test_arm_64_lowmem.xml"],
55    tool_files: [
56        "tools/gen_ltp_config.py",
57        "tools/**/*.py",
58        "tools/template/template.xml",
59    ],
60    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch arm --bitness 64 --low-mem True --hwasan False $(out)",
61}
62
63sh_test {
64    name: "vts_ltp_test_arm_64_hwasan",
65    src: "phony_ltp_test_arm64_hwasan.sh",
66    test_suites: [
67        "general-tests",
68        "vts"
69    ],
70    test_config: ":ltp_config_arm_64_hwasan",
71}
72
73genrule {
74    name: "ltp_config_arm_64_hwasan",
75    out: ["vts_ltp_test_arm_64_hwasan.xml"],
76    tool_files: [
77        "tools/gen_ltp_config.py",
78        "tools/**/*.py",
79        "tools/template/template.xml",
80    ],
81    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch arm --bitness 64 --low-mem False --hwasan True $(out)",
82}
83
84sh_test {
85    name: "vts_ltp_test_arm_64_lowmem_hwasan",
86    src: "phony_ltp_test_arm64_lowmem_hwasan.sh",
87    test_suites: [
88        "general-tests",
89        "vts"
90    ],
91    test_config: ":ltp_config_arm_64_lowmem_hwasan",
92}
93
94genrule {
95    name: "ltp_config_arm_64_lowmem_hwasan",
96    out: ["vts_ltp_test_arm_64_lowmem_hwasan.xml"],
97    tool_files: [
98        "tools/gen_ltp_config.py",
99        "tools/**/*.py",
100        "tools/template/template.xml",
101    ],
102    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch arm --bitness 64 --low-mem True --hwasan True $(out)",
103}
104
105sh_test {
106    name: "vts_ltp_test_arm",
107    src: "phony_ltp_test_arm.sh",
108    test_suites: [
109        "general-tests",
110        "vts"
111    ],
112    test_config: ":ltp_config_arm",
113}
114
115genrule {
116    name: "ltp_config_arm",
117    out: ["vts_ltp_test_arm.xml"],
118    tool_files: [
119        "tools/gen_ltp_config.py",
120        "tools/**/*.py",
121        "tools/template/template.xml",
122    ],
123    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch arm --bitness 32 --low-mem False --hwasan False $(out)",
124}
125
126sh_test {
127    name: "vts_ltp_test_arm_lowmem",
128    src: "phony_ltp_test_arm_lowmem.sh",
129    test_suites: [
130        "general-tests",
131        "vts"
132    ],
133    test_config: ":ltp_config_arm_lowmem",
134}
135
136genrule {
137    name: "ltp_config_arm_lowmem",
138    out: ["vts_ltp_test_arm_lowmem.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) --arch arm --bitness 32 --low-mem True --hwasan False $(out)",
145}
146
147sh_test {
148    name: "vts_ltp_test_riscv_64",
149    src: "phony_ltp_test_riscv64.sh",
150    test_suites: ["vts"],
151    test_config: ":ltp_config_riscv_64",
152}
153
154genrule {
155    name: "ltp_config_riscv_64",
156    out: ["vts_ltp_test_riscv_64.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) --arch riscv --bitness 64 --low-mem False --hwasan False $(out)",
163}
164
165sh_test {
166    name: "vts_ltp_test_x86_64",
167    src: "phony_ltp_test_x86_64.sh",
168    test_suites: [
169        "general-tests",
170        "vts"
171    ],
172    test_config: ":ltp_config_x86_64",
173}
174
175genrule {
176    name: "ltp_config_x86_64",
177    out: ["vts_ltp_test_x86_64.xml"],
178    tool_files: [
179        "tools/gen_ltp_config.py",
180        "tools/**/*.py",
181        "tools/template/template.xml",
182    ],
183    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch x86 --bitness 64 --low-mem False --hwasan False $(out)",
184}
185
186sh_test {
187    name: "vts_ltp_test_x86",
188    src: "phony_ltp_test_x86.sh",
189    test_suites: [
190        "general-tests",
191        "vts"
192    ],
193    test_config: ":ltp_config_x86",
194}
195
196genrule {
197    name: "ltp_config_x86",
198    out: ["vts_ltp_test_x86.xml"],
199    tool_files: [
200        "tools/gen_ltp_config.py",
201        "tools/**/*.py",
202        "tools/template/template.xml",
203    ],
204    cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch x86 --bitness 32 --low-mem False --hwasan False $(out)",
205}
206