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 tools: ["gen_ltp_config"], 35 cmd: "$(location gen_ltp_config) --arch arm --bitness 64 --low-mem False --hwasan False $(out)", 36} 37 38sh_test { 39 name: "vts_ltp_test_arm_64_lowmem", 40 src: "phony_ltp_test_arm64_lowmem.sh", 41 test_suites: [ 42 "general-tests", 43 "vts" 44 ], 45 test_config: ":ltp_config_arm_64_lowmem", 46} 47 48genrule { 49 name: "ltp_config_arm_64_lowmem", 50 out: ["vts_ltp_test_arm_64_lowmem.xml"], 51 tools: ["gen_ltp_config"], 52 cmd: "$(location gen_ltp_config) --arch arm --bitness 64 --low-mem True --hwasan False $(out)", 53} 54 55sh_test { 56 name: "vts_ltp_test_arm_64_hwasan", 57 src: "phony_ltp_test_arm64_hwasan.sh", 58 test_suites: [ 59 "general-tests", 60 "vts" 61 ], 62 test_config: ":ltp_config_arm_64_hwasan", 63} 64 65genrule { 66 name: "ltp_config_arm_64_hwasan", 67 out: ["vts_ltp_test_arm_64_hwasan.xml"], 68 tools: ["gen_ltp_config"], 69 cmd: "$(location gen_ltp_config) --arch arm --bitness 64 --low-mem False --hwasan True $(out)", 70} 71 72sh_test { 73 name: "vts_ltp_test_arm_64_lowmem_hwasan", 74 src: "phony_ltp_test_arm64_lowmem_hwasan.sh", 75 test_suites: [ 76 "general-tests", 77 "vts" 78 ], 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 tools: ["gen_ltp_config"], 86 cmd: "$(location gen_ltp_config) --arch arm --bitness 64 --low-mem True --hwasan True $(out)", 87} 88 89sh_test { 90 name: "vts_ltp_test_arm", 91 src: "phony_ltp_test_arm.sh", 92 test_suites: [ 93 "general-tests", 94 "vts" 95 ], 96 test_config: ":ltp_config_arm", 97} 98 99genrule { 100 name: "ltp_config_arm", 101 out: ["vts_ltp_test_arm.xml"], 102 tools: ["gen_ltp_config"], 103 cmd: "$(location gen_ltp_config) --arch arm --bitness 32 --low-mem False --hwasan False $(out)", 104} 105 106sh_test { 107 name: "vts_ltp_test_arm_lowmem", 108 src: "phony_ltp_test_arm_lowmem.sh", 109 test_suites: [ 110 "general-tests", 111 "vts" 112 ], 113 test_config: ":ltp_config_arm_lowmem", 114} 115 116genrule { 117 name: "ltp_config_arm_lowmem", 118 out: ["vts_ltp_test_arm_lowmem.xml"], 119 tools: ["gen_ltp_config"], 120 cmd: "$(location gen_ltp_config) --arch arm --bitness 32 --low-mem True --hwasan False $(out)", 121} 122 123sh_test { 124 name: "vts_ltp_test_riscv_64", 125 src: "phony_ltp_test_riscv64.sh", 126 test_suites: ["vts"], 127 test_config: ":ltp_config_riscv_64", 128} 129 130genrule { 131 name: "ltp_config_riscv_64", 132 out: ["vts_ltp_test_riscv_64.xml"], 133 tools: ["gen_ltp_config"], 134 cmd: "$(location gen_ltp_config) --arch riscv --bitness 64 --low-mem False --hwasan False $(out)", 135} 136 137sh_test { 138 name: "vts_ltp_test_x86_64", 139 src: "phony_ltp_test_x86_64.sh", 140 test_suites: [ 141 "general-tests", 142 "vts" 143 ], 144 test_config: ":ltp_config_x86_64", 145} 146 147genrule { 148 name: "ltp_config_x86_64", 149 out: ["vts_ltp_test_x86_64.xml"], 150 tools: ["gen_ltp_config"], 151 cmd: "$(location gen_ltp_config) --arch x86 --bitness 64 --low-mem False --hwasan False $(out)", 152} 153 154sh_test { 155 name: "vts_ltp_test_x86", 156 src: "phony_ltp_test_x86.sh", 157 test_suites: [ 158 "general-tests", 159 "vts" 160 ], 161 test_config: ":ltp_config_x86", 162} 163 164genrule { 165 name: "ltp_config_x86", 166 out: ["vts_ltp_test_x86.xml"], 167 tools: ["gen_ltp_config"], 168 cmd: "$(location gen_ltp_config) --arch x86 --bitness 32 --low-mem False --hwasan False $(out)", 169} 170