OLD | NEW |
(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) |
OLD | NEW |