summaryrefslogtreecommitdiffstats
path: root/chrome/test/debugger/debugger_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/debugger/debugger_unittests.py')
-rwxr-xr-xchrome/test/debugger/debugger_unittests.py56
1 files changed, 0 insertions, 56 deletions
diff --git a/chrome/test/debugger/debugger_unittests.py b/chrome/test/debugger/debugger_unittests.py
deleted file mode 100755
index d42a1f3..0000000
--- a/chrome/test/debugger/debugger_unittests.py
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/usr/bin/python
-# debugger_unittests.py
-#
-# Run chrome debugger front-end tests.
-# see also chrome/test/debugger/test_protocol.js
-
-import optparse
-import os.path
-import subprocess
-import sys
-import time
-
-import google.path_utils
-import google.process_utils
-
-def RunTests(build_dir=None):
- '''This is just a simple wrapper for running the test through v8_shell.
- Since v8_shell always returns 0 whether the test passes or fails,
- buildbot looks at stdout to test for failure.
- '''
- script_dir = google.path_utils.ScriptDir()
- chrome_dir = google.path_utils.FindUpward(script_dir, "chrome")
- v8_dir = google.path_utils.FindUpward(script_dir, "v8")
- if build_dir:
- v8_shell = os.path.join(build_dir, "v8_shell.exe")
- else:
- v8_shell = os.path.join(chrome_dir, "Debug", "v8_shell.exe")
- # look for Debug version first
- if not os.path.isfile(v8_shell):
- v8_shell = os.path.join(chrome_dir, "Release", "v8_shell.exe")
- cmd = [v8_shell,
- "--allow-natives-syntax",
- "--expose-debug-as", "debugContext",
- os.path.join(chrome_dir, "browser", "debugger", "resources",
- "debugger_shell.js"),
- # TODO Change the location of mjsunit.js from the copy in this
- # directory to the copy in V8 when switching to use V8 from
- # code.google.com.
- # os.path.join(v8_dir, "test", "mjsunit", "mjsunit.js"),
- os.path.join(chrome_dir, "test", "debugger", "mjsunit.js"),
- os.path.join(chrome_dir, "test", "debugger", "test_protocol.js")
- ]
- #(retcode, output) = google.process_utils.RunCommandFull(cmd,
- # collect_output=True)
- #if "Success" in output:
- return 0
- #else:
- # return 1
-
-if __name__ == "__main__":
- parser = optparse.OptionParser("usage: %prog [--build_dir=dir]")
- parser.add_option("", "--build_dir",
- help="directory where v8_shell.exe was built")
- (options, args) = parser.parse_args()
- ret = RunTests(options.build_dir)
- sys.exit(ret)