nodejs/deps/v8/test/fuzzer/testcfg.py
Michaël Zasso 918fe04351
deps: update V8 to 13.6.233.8
PR-URL: https://github.com/nodejs/node/pull/58070
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2025-05-02 15:06:53 +02:00

74 lines
1.6 KiB
Python

# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from testrunner.local import testsuite
from testrunner.objects import testcase
from testrunner.outproc import fuzzer
SUB_TESTS = [
'inspector',
'json',
'parser',
'regexp',
'regexp_builtins',
'multi_return',
'wasm/module',
'wasm/async',
'wasm/code',
'wasm/compile',
'wasm/compile_all',
'wasm/compile_simd',
'wasm/compile_wasmgc',
'wasm/init_expr',
'wasm/streaming',
]
class VariantsGenerator(testsuite.VariantsGenerator):
def _get_variants(self, test):
return self._standard_variant
class TestLoader(testsuite.GenericTestLoader):
@property
def test_dirs(self):
return SUB_TESTS
def _to_relpath(self, abspath, _):
return abspath.relative_to(self.suite.root)
def _should_filter_by_name(self, _):
return False
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
def _variants_gen_class(self):
return VariantsGenerator
class TestCase(testcase.TestCase):
def _get_files_params(self):
return [self.suite.root / self.path]
def _get_variant_flags(self):
return []
def _get_statusfile_flags(self):
return []
def _get_mode_flags(self):
return []
def get_shell(self):
fuzzer_name = '_'.join(self.path.parts[:-1])
return f'v8_simple_{fuzzer_name}_fuzzer'
@property
def output_proc(self):
return fuzzer.OutProc(self.expected_outcomes)