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

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

Issue 1604203002: Add a library suitable for libfuzzer with a small unit test runner shell (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 11 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import os
6
7 from testrunner.local import testsuite
8 from testrunner.objects import testcase
9
10
11 class ParserFuzzerTestSuite(testsuite.TestSuite):
12
13 def __init__(self, name, root):
14 super(ParserFuzzerTestSuite, self).__init__(name, root)
15
16 def ListTests(self, context):
17 tests = []
18 for fname in os.listdir(self.root):
19 if not os.isfile(os.join(self.root, fname)):
20 continue
21 if fname == 'testcfg.py' or fname == '%s.status' % self.name:
22 continue
23 test = testcase.TestCase(self, fname)
24 tests.append(test)
25 tests.sort()
26 return tests
27
28 def GetFlagsForTestCase(self, testcase, context):
29 return ''
30
31
32 def GetSuite(name, root):
33 return ParserFuzzerTestSuite(name, root)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698