Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: test/fuzzer/testcfg.py

Issue 1655853002: [regexp] add fuzzer support for regexp parser and compiler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix fuzzer.gyp Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/fuzzer/regexp/test24 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 the V8 project authors. All rights reserved. 1 # Copyright 2016 the V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 from testrunner.local import testsuite 7 from testrunner.local import testsuite
8 from testrunner.objects import testcase 8 from testrunner.objects import testcase
9 9
10 10
11 class FuzzerTestSuite(testsuite.TestSuite): 11 class FuzzerTestSuite(testsuite.TestSuite):
12 SUB_TESTS = ( 'parser', ) 12 SUB_TESTS = ( 'parser', 'regexp', )
13 13
14 def __init__(self, name, root): 14 def __init__(self, name, root):
15 super(FuzzerTestSuite, self).__init__(name, root) 15 super(FuzzerTestSuite, self).__init__(name, root)
16 16
17 def ListTests(self, context): 17 def ListTests(self, context):
18 tests = [] 18 tests = []
19 for subtest in FuzzerTestSuite.SUB_TESTS: 19 for subtest in FuzzerTestSuite.SUB_TESTS:
20 shell = '%s_fuzzer' % subtest 20 shell = '%s_fuzzer' % subtest
21 for fname in os.listdir(os.path.join(self.root, subtest)): 21 for fname in os.listdir(os.path.join(self.root, subtest)):
22 if not os.path.isfile(os.path.join(self.root, subtest, fname)): 22 if not os.path.isfile(os.path.join(self.root, subtest, fname)):
23 continue 23 continue
24 test = testcase.TestCase(self, '%s/%s' % (subtest, fname), 24 test = testcase.TestCase(self, '%s/%s' % (subtest, fname),
25 override_shell=shell) 25 override_shell=shell)
26 tests.append(test) 26 tests.append(test)
27 tests.sort() 27 tests.sort()
28 return tests 28 return tests
29 29
30 def GetFlagsForTestCase(self, testcase, context): 30 def GetFlagsForTestCase(self, testcase, context):
31 suite, name = testcase.path.split('/') 31 suite, name = testcase.path.split('/')
32 return [os.path.join(self.root, suite, name)] 32 return [os.path.join(self.root, suite, name)]
33 33
34 34
35 def GetSuite(name, root): 35 def GetSuite(name, root):
36 return FuzzerTestSuite(name, root) 36 return FuzzerTestSuite(name, root)
OLDNEW
« no previous file with comments | « test/fuzzer/regexp/test24 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698