Chromium Code Reviews| Index: test/fuzzer/testcfg.py |
| diff --git a/test/fuzzer/testcfg.py b/test/fuzzer/testcfg.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..40e5e10b1dfca0e57b343646501e8e48d487e66b |
| --- /dev/null |
| +++ b/test/fuzzer/testcfg.py |
| @@ -0,0 +1,36 @@ |
| +# Copyright 2016 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 |
| + |
| + |
| +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
|
| + SUB_TESTS = ( 'parser', ) |
| + |
| + def __init__(self, name, root): |
| + super(FuzzerTestSuite, self).__init__(name, root) |
| + |
| + def ListTests(self, context): |
| + tests = [] |
| + for subtest in FuzzerTestSuite.SUB_TESTS: |
| + shell = '%s_fuzzer' % subtest |
| + for fname in os.listdir(os.path.join(self.root, subtest)): |
| + if not os.path.isfile(os.path.join(self.root, subtest, fname)): |
| + continue |
| + test = testcase.TestCase(self, '%s/%s' % (subtest, fname), |
| + override_shell=shell) |
| + tests.append(test) |
| + tests.sort() |
| + return tests |
| + |
| + def GetFlagsForTestCase(self, testcase, context): |
| + suite, name = testcase.path.split('/') |
| + return [os.path.join(self.root, suite, name)] |
| + |
| + |
| +def GetSuite(name, root): |
| + return FuzzerTestSuite(name, root) |