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_x86_64", 149 src: "phony_ltp_test_x86_64.sh", 150 test_suites: [ 151 "general-tests", 152 "vts" 153 ], 154 test_config: ":ltp_config_x86_64", 155} 156 157genrule { 158 name: "ltp_config_x86_64", 159 out: ["vts_ltp_test_x86_64.xml"], 160 tool_files: [ 161 "tools/gen_ltp_config.py", 162 "tools/**/*.py", 163 "tools/template/template.xml", 164 ], 165 cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch x86 --bitness 64 --low-mem False --hwasan False $(out)", 166} 167 168sh_test { 169 name: "vts_ltp_test_x86", 170 src: "phony_ltp_test_x86.sh", 171 test_suites: [ 172 "general-tests", 173 "vts" 174 ], 175 test_config: ":ltp_config_x86", 176} 177 178genrule { 179 name: "ltp_config_x86", 180 out: ["vts_ltp_test_x86.xml"], 181 tool_files: [ 182 "tools/gen_ltp_config.py", 183 "tools/**/*.py", 184 "tools/template/template.xml", 185 ], 186 cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) --arch x86 --bitness 32 --low-mem False --hwasan False $(out)", 187} 188