Chromium Code Reviews| 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 FuzzerTestSuite(testsuite.TestSuite): | |
|
Michael Achenbach
2016/01/25 15:05:53
Do our testing variants make sense for these tests
jochen (gone - plz use gerrit)
2016/01/26 07:54:20
some systems might behave differently based on tho
| |
| 12 SUB_TESTS = ( 'parser', ) | |
| 13 | |
| 14 def __init__(self, name, root): | |
| 15 super(FuzzerTestSuite, self).__init__(name, root) | |
| 16 | |
| 17 def ListTests(self, context): | |
| 18 tests = [] | |
| 19 for subtest in FuzzerTestSuite.SUB_TESTS: | |
| 20 shell = '%s_fuzzer' % 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)): | |
| 23 continue | |
| 24 test = testcase.TestCase(self, '%s/%s' % (subtest, fname), | |
| 25 override_shell=shell) | |
| 26 tests.append(test) | |
| 27 tests.sort() | |
| 28 return tests | |
| 29 | |
| 30 def GetFlagsForTestCase(self, testcase, context): | |
| 31 suite, name = testcase.path.split('/') | |
| 32 return [os.path.join(self.root, suite, name)] | |
| 33 | |
| 34 | |
| 35 def GetSuite(name, root): | |
| 36 return FuzzerTestSuite(name, root) | |
| OLD | NEW |