Revert "Revert "Upgrade to 5.0.71.48"" DO NOT MERGE
This reverts commit f2e3994fa5148cc3d9946666f0b0596290192b0e,
and updates the x64 makefile properly so it doesn't break that
build.
FPIIM-449
Change-Id: Ib83e35bfbae6af627451c926a9650ec57c045605
(cherry picked from commit 109988c7ccb6f3fd1a58574fa3dfb88beaef6632)
diff --git a/test/fuzzer/testcfg.py b/test/fuzzer/testcfg.py
new file mode 100644
index 0000000..976325a
--- /dev/null
+++ b/test/fuzzer/testcfg.py
@@ -0,0 +1,48 @@
+# 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 FuzzerVariantGenerator(testsuite.VariantGenerator):
+ # Only run the fuzzer with standard variant.
+ def FilterVariantsByTest(self, testcase):
+ return self.standard_variant
+
+ def GetFlagSets(self, testcase, variant):
+ return testsuite.FAST_VARIANT_FLAGS[variant]
+
+
+class FuzzerTestSuite(testsuite.TestSuite):
+ SUB_TESTS = ( 'json', 'parser', 'regexp', )
+
+ 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 _VariantGeneratorFactory(self):
+ return FuzzerVariantGenerator
+
+
+def GetSuite(name, root):
+ return FuzzerTestSuite(name, root)