6e5f2812e0
The multi-value proposal is now merged in the main spec repository, so: - Remove everything that references the multi-value spec repository - Add --experimental-wasm-mv to the default flags R=ahaas@chromium.org Change-Id: I9f809c21404bb5c1d21eb330748ea51a15688546 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2153219 Commit-Queue: Thibaud Michaud <thibaudm@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#67313}
58 lines
1.8 KiB
Python
58 lines
1.8 KiB
Python
# 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.
|
|
|
|
import os
|
|
|
|
from testrunner.local import testsuite
|
|
from testrunner.objects import testcase
|
|
|
|
proposal_flags = [{
|
|
'name': 'reference-types',
|
|
'flags': ['--experimental-wasm-anyref']
|
|
},
|
|
{
|
|
'name': 'bulk-memory-operations',
|
|
'flags': ['--experimental-wasm-bulk-memory']
|
|
},
|
|
{
|
|
'name': 'js-types',
|
|
'flags': ['--experimental-wasm-type-reflection',
|
|
'--no-experimental-wasm-bulk-memory']
|
|
},
|
|
{
|
|
'name': 'JS-BigInt-integration',
|
|
'flags': ['--experimental-wasm-bigint']
|
|
},
|
|
]
|
|
|
|
class TestLoader(testsuite.JSTestLoader):
|
|
pass
|
|
|
|
class TestSuite(testsuite.TestSuite):
|
|
def __init__(self, *args, **kwargs):
|
|
super(TestSuite, self).__init__(*args, **kwargs)
|
|
self.test_root = os.path.join(self.root, "tests")
|
|
self._test_loader.test_root = self.test_root
|
|
|
|
def _test_loader_class(self):
|
|
return TestLoader
|
|
|
|
def _test_class(self):
|
|
return TestCase
|
|
|
|
class TestCase(testcase.D8TestCase):
|
|
def _get_files_params(self):
|
|
return [os.path.join(self.suite.test_root, self.path + self._get_suffix())]
|
|
|
|
def _get_source_flags(self):
|
|
for proposal in proposal_flags:
|
|
if os.sep.join(['proposals', proposal['name']]) in self.path:
|
|
return proposal['flags']
|
|
# TODO(thibaudm): Remove the flag once multi-value is shipped in V8.
|
|
return ['--experimental-wasm-mv']
|
|
|
|
|
|
def GetSuite(*args, **kwargs):
|
|
return TestSuite(*args, **kwargs)
|