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

Unified Diff: test/fuzz-natives/testcfg.py

Issue 663043003: Remove fuzz-natives tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « test/fuzz-natives/fuzz-natives.status ('k') | tools/run-tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/fuzz-natives/testcfg.py
diff --git a/test/fuzz-natives/testcfg.py b/test/fuzz-natives/testcfg.py
deleted file mode 100644
index 5e00b404bc926a723eb44cf5b8d8bd39aed2ad8d..0000000000000000000000000000000000000000
--- a/test/fuzz-natives/testcfg.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 2014 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 commands
-from testrunner.local import testsuite
-from testrunner.local import utils
-from testrunner.objects import testcase
-
-class FuzzNativesTestSuite(testsuite.TestSuite):
-
- def __init__(self, name, root):
- super(FuzzNativesTestSuite, self).__init__(name, root)
-
- def ListTests(self, context):
- shell = os.path.abspath(os.path.join(context.shell_dir, self.shell()))
- if utils.IsWindows():
- shell += ".exe"
- output = commands.Execute(
- context.command_prefix +
- [shell, "--allow-natives-syntax", "-e",
- "try { var natives = %ListNatives();"
- " for (var n in natives) { print(natives[n]); }"
- "} catch(e) {}"] +
- context.extra_flags)
- if output.exit_code != 0:
- print output.stdout
- print output.stderr
- assert False, "Failed to get natives list."
- tests = []
- for line in output.stdout.strip().split():
- try:
- (name, argc) = line.split(",")
- flags = ["--allow-natives-syntax",
- "-e", "var NAME = '%s', ARGC = %s;" % (name, argc)]
- test = testcase.TestCase(self, name, flags)
- tests.append(test)
- except:
- # Work-around: If parsing didn't work, it might have been due to output
- # caused by other d8 flags.
- pass
- return tests
-
- def GetFlagsForTestCase(self, testcase, context):
- name = testcase.path
- basefile = os.path.join(self.root, "base.js")
- return testcase.flags + [basefile] + context.mode_flags
-
-def GetSuite(name, root):
- return FuzzNativesTestSuite(name, root)
« no previous file with comments | « test/fuzz-natives/fuzz-natives.status ('k') | tools/run-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698