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

Unified 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698