Commit 0d1b00b8 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[test] Add non-d8 test suites to Android testing

This enables cctest, unittests, fuzzer and inspector on Android.
The cctest suite requires extra resource-fetching logic for the
bytecode-generator expectation files.

Bug: chromium:866862
Cq-Include-Trybots: luci.v8.try:v8_android_arm64_n5x_rel_ng
Change-Id: If3da853a62c047388476a7f38e32e64e2859f186
Reviewed-on: https://chromium-review.googlesource.com/1213208
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55784}
parent 86dd4af0
......@@ -40,7 +40,7 @@
},
'tests': [
{'name': 'benchmarks', 'variant': 'default'},
{'name': 'd8testing', 'variant': 'default', 'shards': 2},
{'name': 'v8testing', 'variant': 'default', 'shards': 4},
{'name': 'mozilla', 'variant': 'default'},
{'name': 'test262_variants', 'variant': 'default', 'shards': 6},
],
......
......@@ -369,6 +369,103 @@
'test-log/ProfLazyMode': [SKIP],
}], # 'arch == android_arm or arch == android_ia32'
##############################################################################
['system == android', {
# https://crbug.com/v8/8161
'test-api/NewStringRangeError': [FAIL],
# https://crbug.com/v8/8157
'test-assembler-arm64/abs': [FAIL],
'test-assembler-arm64/adcs_sbcs_w': [FAIL],
'test-assembler-arm64/adcs_sbcs_x': [FAIL],
'test-assembler-arm64/default_nan_double': [FAIL],
'test-assembler-arm64/default_nan_float': [FAIL],
'test-assembler-arm64/fcvt_sd': [FAIL],
'test-assembler-arm64/fmadd_fmsub_double': [FAIL],
'test-assembler-arm64/fmadd_fmsub_double_nans': [FAIL],
'test-assembler-arm64/fmadd_fmsub_float': [FAIL],
'test-assembler-arm64/fmadd_fmsub_float_nans': [FAIL],
'test-assembler-arm64/fmax_fmin_d': [FAIL],
'test-assembler-arm64/fmax_fmin_s': [FAIL],
'test-assembler-arm64/ldr_pcrel_large_offset': [FAIL],
'test-assembler-arm64/process_nans_double': [FAIL],
'test-assembler-arm64/process_nans_float': [FAIL],
'test-assembler-arm64/push_pop_fp_simple_32': [FAIL],
'test-assembler-arm64/push_pop_fp_simple_64': [FAIL],
'test-assembler-arm64/push_pop_simple_64': [FAIL],
'test-assembler-arm64/scvtf_ucvtf_double': [FAIL],
'test-assembler-arm64/scvtf_ucvtf_float': [FAIL],
'test-assembler-arm64/smull': [FAIL],
'test-code-stubs-arm64/ConvertDToI': [FAIL],
# https://crbug.com/v8/8158
'test-run-wasm-module/Run_WasmModule_Reclaim_Memory': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32AddOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32DivSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32DivUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32MulOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32RemSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32RemUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32ShlOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32ShrSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32ShrUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I32SubOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64AddOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64DivSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64DivUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64MulOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64RemSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64RemUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64ShlOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64ShrSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64ShrUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_I64SubOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmInterpreter_LoadMemI32_const_oob': [FAIL],
'test-run-wasm/RunWasmInterpreter_LoadMemI32_const_oob_misaligned': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32AddOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32DivSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32DivUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32MulOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32RemSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32RemUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32ShlOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32ShrSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32ShrUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I32SubOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64AddOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64DivSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64DivUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64MulOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64RemSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64RemUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64ShlOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64ShrSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64ShrUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_I64SubOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmLiftoff_LoadMemI32_const_oob': [FAIL],
'test-run-wasm/RunWasmLiftoff_LoadMemI32_const_oob_misaligned': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32AddOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32DivSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32DivUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32MulOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32RemSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32RemUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32ShlOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32ShrSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32ShrUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I32SubOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64AddOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64DivSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64DivUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64MulOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64RemSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64RemUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64ShlOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64ShrSOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64ShrUOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_I64SubOnDifferentRegisters': [FAIL],
'test-run-wasm/RunWasmTurbofan_LoadMemI32_const_oob': [FAIL],
'test-run-wasm/RunWasmTurbofan_LoadMemI32_const_oob_misaligned': [FAIL],
}], # 'system == android'
##############################################################################
['system == aix and arch == ppc64', {
......
......@@ -66,6 +66,18 @@ class TestCase(testcase.TestCase):
def _get_files_params(self):
return [self.path]
def _get_resources(self):
# Bytecode-generator tests are the only ones requiring extra files on
# Android.
parts = self.name.split('/')
if parts[0] == 'test-bytecode-generator':
expectation_file = os.path.join(
self.suite.root, 'interpreter', 'bytecode_expectations',
'%s.golden' % parts[1])
if os.path.exists(expectation_file):
return [expectation_file]
return []
def GetSuite(*args, **kwargs):
return TestSuite(*args, **kwargs)
......@@ -3,6 +3,17 @@
# found in the LICENSE file.
[
##############################################################################
[ALWAYS, {
# https://crbug.com/v8/7767
'debugger/wasm-imports': [SKIP],
}], # ALWAYS
##############################################################################
['system == android', {
# https://crbug.com/v8/8160
'debugger/stepping-with-exposed-injected-script': [FAIL],
}], # 'system == android'
##############################################################################
['variant != default', {
......@@ -24,10 +35,4 @@
# Stack manipulations in LiveEdit is not implemented for this arch.
'debugger/set-script-source-stack-padding': [SKIP],
}], # 'arch == s390 or arch == s390x'
##############################################################################
[ALWAYS, {
# https://crbug.com/v8/7767
'debugger/wasm-imports': [SKIP],
}], # ALWAYS
]
......@@ -58,6 +58,13 @@ class TestCase(testcase.TestCase):
def get_shell(self):
return 'inspector-test'
def _get_resources(self):
return [
os.path.join('src', 'inspector', 'injected-script-source.js'),
os.path.join(
'test', 'inspector', 'debugger', 'resources', 'break-locations.js'),
]
@property
def output_proc(self):
return outproc.ExpectedOutProc(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment