Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,369 @@
{
"duration_mean": 1,
"max_rss_tests": [
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 3,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"max_vms_tests": [
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 3,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"results": [
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"crash_state": "",
"crash_type": "",
"duration": 1,
"error_details": "+Mock diff",
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"stderr": "",
"stdout": "--test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner\n",
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"crash_state": "",
"crash_type": "",
"duration": 1,
"error_details": "+Mock diff",
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"stderr": "",
"stdout": "--test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner\n",
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"crash_state": "",
"crash_type": "",
"duration": 1,
"error_details": "+Mock diff",
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 3,
"shard_count": 1,
"shard_id": 0,
"stderr": "",
"stdout": "--test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner\n",
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"slowest_tests": [
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py --test strawberries --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"--test",
"strawberries",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": true,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/strawberries",
"random_seed": 123,
"result": "FAIL",
"run": 3,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"test_total": 3
}

View File

@ -0,0 +1,242 @@
{
"duration_mean": 1,
"max_rss_tests": [
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 0,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": false,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": false,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"max_vms_tests": [
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 0,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": false,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": false,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"results": [
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"crash_state": "",
"crash_type": "",
"duration": 1,
"error_details": null,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"stderr": "",
"stdout": "bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner\n",
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"crash_state": "",
"crash_type": "",
"duration": 1,
"error_details": null,
"exit_code": 0,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "PASS",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"stderr": "",
"stdout": "bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner\n",
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"slowest_tests": [
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 0,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": false,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "",
"run": 2,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
},
{
"command": "/usr/bin/python out/build/d8_mocked.py bananaflakes --random-seed=123 --nohard-abort --testing-d8-test-runner",
"duration": 1,
"exit_code": 1,
"expected": [
"PASS"
],
"flags": [
"bananaflakes",
"--random-seed=123",
"--nohard-abort",
"--testing-d8-test-runner"
],
"framework_name": "standard_runner",
"marked_heavy": false,
"marked_slow": false,
"max_rss": 1,
"max_vms": 1,
"name": "sweet/bananaflakes",
"random_seed": 123,
"result": "FAIL",
"run": 1,
"shard_count": 1,
"shard_id": 0,
"target_name": "d8_mocked.py",
"variant": "default",
"variant_flags": []
}
],
"test_total": 2
}

View File

@ -0,0 +1,30 @@
# Copyright 2017 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.
"""
Dummy d8 replacement. Just passes all test, except if 'berries' is in args.
"""
# for py2/py3 compatibility
from __future__ import print_function
import sys
args = ' '.join(sys.argv[1:])
print(args)
# Let all berries fail.
if 'berries' in args:
sys.exit(1)
# Dummy results if some analysis flags for numfuzz are present.
if '--print-deopt-stress' in args:
print('=== Stress deopt counter: 12345')
if '--fuzzer-gc-analysis' in args:
print('### Maximum marking limit reached = 3.70')
print('### Maximum new space size reached = 7.30')
print('### Allocations = 9107, hash = 0x0000001b')
sys.exit(0)

View File

@ -0,0 +1,36 @@
# Copyright 2017 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.
[
[ALWAYS, {
'raspberries': FAIL,
'strawberries': [PASS, ['mode == release', SLOW], ['mode == debug', NO_VARIANTS]],
'mangoes': [PASS, SLOW],
# Both cherries and apples are to test how PASS an FAIL from different
# sections are merged.
'cherries': [PASS, SLOW],
'apples': [FAIL],
# Unused rule.
'carrots': [PASS, FAIL],
}],
['variant == nooptimization', {
'strawberries': [SKIP],
}],
['arch == x64', {
'cherries': [FAIL],
'apples': [PASS, SLOW],
# Unused rule.
'regress/*': [CRASH],
}],
['asan', {
'bananas': [PASS, NO_VARIANTS],
'raspberries': [FAIL, NO_VARIANTS],
}],
]

View File

@ -0,0 +1,51 @@
# Copyright 2017 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.
"""
Dummy test suite extension with some fruity tests.
"""
from testrunner.local import testsuite
from testrunner.objects import testcase
from testrunner.outproc.base import OutProc
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return [
'bananas', 'apples', 'cherries', 'mangoes', 'strawberries',
'blackberries', 'raspberries',
]
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class MockOutProc(OutProc):
def __init__(self, expected_outcomes):
OutProc.__init__(self, expected_outcomes)
def _get_error_details(self, output):
return "+Mock diff"
class TestCase(testcase.D8TestCase):
def get_shell(self):
return 'd8_mocked.py'
def _get_files_params(self):
return [self.name]
@property
def output_proc(self):
if self.name == 'strawberries':
return MockOutProc([])
else:
return super(TestCase, self).output_proc

View File

@ -0,0 +1,32 @@
# Copyright 2018 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.
"""
Dummy d8 replacement for flaky tests.
"""
# for py2/py3 compatibility
from __future__ import print_function
import os
import sys
PATH = os.path.dirname(os.path.abspath(__file__))
print(' '.join(sys.argv[1:]))
# Test files ending in 'flakes' should first fail then pass. We store state in
# a file side by side with the executable. No clean-up required as all tests
# run in a temp test root. Restriction: Only one variant is supported for now.
for arg in sys.argv[1:]:
if arg.endswith('flakes'):
flake_state = os.path.join(PATH, arg)
if os.path.exists(flake_state):
sys.exit(0)
else:
with open(flake_state, 'w') as f:
f.write('something')
sys.exit(1)
sys.exit(0)

View File

@ -0,0 +1,6 @@
# Copyright 2018 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.
[
]

View File

@ -0,0 +1,31 @@
# Copyright 2018 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.
"""
Dummy test suite extension with some flaky fruity tests.
"""
from testrunner.local import testsuite
from testrunner.objects import testcase
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return ['bananaflakes']
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class TestCase(testcase.TestCase):
def get_shell(self):
return 'd8_mocked.py'
def _get_files_params(self):
return [self.name]

View File

@ -0,0 +1,16 @@
# Copyright 2021 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.
"""
Dummy d8 replacement. Just passes all test.
"""
# for py2/py3 compatibility
from __future__ import print_function
import sys
args = ' '.join(sys.argv[1:])
print(args)
sys.exit(0)

View File

@ -0,0 +1,15 @@
# Copyright 2021 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.
[
[ALWAYS, {
'raspberries': [PASS, HEAVY],
'strawberries': [PASS, HEAVY],
'blackberries': [PASS, HEAVY],
}],
['variant == nooptimization', {
'cherries': [PASS, HEAVY],
}],
]

View File

@ -0,0 +1,33 @@
# Copyright 2021 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.
"""
Dummy test suite extension with some fruity tests.
"""
from testrunner.local import testsuite
from testrunner.objects import testcase
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return [
'bananas', 'apples', 'cherries', 'mangoes', 'strawberries',
'blackberries', 'raspberries',
]
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class TestCase(testcase.D8TestCase):
def get_shell(self):
return 'd8_mocked.py'
def _get_files_params(self):
return [self.name]

View File

@ -0,0 +1,2 @@
{
malformed json

View File

@ -0,0 +1,36 @@
# Copyright 2022 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.
[
[ALWAYS, {
'raspberries': FAIL,
'strawberries': [PASS, ['mode == release', SLOW], ['mode == debug', NO_VARIANTS]],
'mangoes': [PASS, SLOW],
# Both cherries and apples are to test how PASS an FAIL from different
# sections are merged.
'cherries': [PASS, SLOW],
'apples': [FAIL],
# Unused rule.
'carrots': [PASS, FAIL],
}],
['variant == nooptimization', {
'strawberries': [SKIP],
}],
['arch == x64', {
'cherries': [FAIL],
'apples': [PASS, SLOW],
# Unused rule.
'regress/*': [CRASH],
}],
['asan', {
'bananas': [PASS, NO_VARIANTS],
'raspberries': [FAIL, NO_VARIANTS],
}],
]

View File

@ -0,0 +1,33 @@
# Copyright 2022 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.
"""
Dummy test suite extension with some fruity tests.
"""
from testrunner.local import testsuite
from testrunner.objects import testcase
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return [
'bananas', 'apples', 'cherries', 'mangoes', 'strawberries',
'blackberries', 'raspberries',
]
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class TestCase(testcase.D8TestCase):
def get_shell(self):
return 'd8_mocked.py'
def _get_files_params(self):
return [self.name]

View File

@ -0,0 +1,18 @@
# Copyright 2017 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.
"""
Dummy d8 replacement. Just passes all test, except if 'berries' is in args.
"""
# for py2/py3 compatibility
from __future__ import print_function
import sys
args = ' '.join(sys.argv[1:])
print(args)
# Let all berries fail.
if 'berries' in args:
sys.exit(1)
sys.exit(0)

View File

@ -0,0 +1,19 @@
# Copyright 2017 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.
[
[ALWAYS, {
'raspberries': [FAIL, HEAVY],
'strawberries': [PASS, ['mode == release', SLOW], ['mode == debug', NO_VARIANTS]],
'mangoes': [PASS, SLOW, HEAVY],
# Both cherries and apples are to test how PASS an FAIL from different
# sections are merged.
'cherries': [PASS, SLOW],
'apples': [FAIL],
# Unused rule.
'carrots': [PASS, FAIL],
}],
]

View File

@ -0,0 +1,41 @@
# Copyright 2017 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.
"""
Dummy test suite extension with some fruity tests.
"""
from testrunner.local import testsuite
from testrunner.objects import testcase
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return [
'bananas',
'apples',
'cherries',
'mangoes',
'strawberries',
'blackberries',
'raspberries',
]
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class TestCase(testcase.D8TestCase):
def get_shell(self):
return 'd8_mocked.py'
def _get_files_params(self):
return [self.name]

View File

@ -0,0 +1,22 @@
# Copyright 2024 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.
"""
Dummy d8 replacement.
"""
import sys
args = ' '.join(sys.argv[1:])
print(args)
# Test numfuzz behavior: the bananas test requires --fuzzing.
if 'bananas' in args and '--fuzzing' not in args:
sys.exit(1)
# Test numfuzz behavior: the apples test fails with --fuzzing.
if 'apples' in args and '--fuzzing' in args:
sys.exit(1)
sys.exit(0)

View File

@ -0,0 +1,6 @@
# Copyright 2024 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.
[
]

View File

@ -0,0 +1,32 @@
# Copyright 2024 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.
"""
Dummy test suite extension with some fruity tests expecting numfuzz behavior.
"""
from testrunner.local import testsuite
from testrunner.objects import testcase
class TestLoader(testsuite.TestLoader):
def _list_test_filenames(self):
return ['bananas', 'apples']
class TestSuite(testsuite.TestSuite):
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class TestCase(testcase.D8TestCase):
def get_shell(self):
return 'd8_mocked.py'
def _get_files_params(self):
assert self.suite.framework_name == 'num_fuzzer'
return [self.name]

View File

@ -0,0 +1,19 @@
{
"arch": "x64",
"asan": false,
"cfi": false,
"component_build": false,
"dcheck_always_on": false,
"debugging_features": false,
"full_debug": false,
"i18n": true,
"is_android": false,
"is_ios": false,
"lite_mode": false,
"msan": false,
"simulator_run": false,
"tsan": false,
"ubsan": false,
"use_sanitizer": false,
"verify_predictable": false
}