| Index: test/fuzzer/parser/testcfg.py
|
| diff --git a/test/fuzzer/parser/testcfg.py b/test/fuzzer/parser/testcfg.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6373888f9a1e8723d497b44b9d224dfa17b6d52d
|
| --- /dev/null
|
| +++ b/test/fuzzer/parser/testcfg.py
|
| @@ -0,0 +1,33 @@
|
| +# 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 ParserFuzzerTestSuite(testsuite.TestSuite):
|
| +
|
| + def __init__(self, name, root):
|
| + super(ParserFuzzerTestSuite, self).__init__(name, root)
|
| +
|
| + def ListTests(self, context):
|
| + tests = []
|
| + for fname in os.listdir(self.root):
|
| + if not os.isfile(os.join(self.root, fname)):
|
| + continue
|
| + if fname == 'testcfg.py' or fname == '%s.status' % self.name:
|
| + continue
|
| + test = testcase.TestCase(self, fname)
|
| + tests.append(test)
|
| + tests.sort()
|
| + return tests
|
| +
|
| + def GetFlagsForTestCase(self, testcase, context):
|
| + return ''
|
| +
|
| +
|
| +def GetSuite(name, root):
|
| + return ParserFuzzerTestSuite(name, root)
|
|
|