summaryrefslogtreecommitdiffstats
path: root/blink/tools
diff options
context:
space:
mode:
authortfarina <tfarina@chromium.org>2014-10-09 20:11:29 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-10 03:11:45 +0000
commita16e8bc1de2136c13428818295663cd46681e5e8 (patch)
treee850563fc5d086bb1f0f2ed509f443358abc5361 /blink/tools
parent060ec9669e74a704618fede00df445c4bbf8395e (diff)
downloadchromium_src-a16e8bc1de2136c13428818295663cd46681e5e8.zip
chromium_src-a16e8bc1de2136c13428818295663cd46681e5e8.tar.gz
chromium_src-a16e8bc1de2136c13428818295663cd46681e5e8.tar.bz2
Move run_webkit_tests.* script into their new home.
As we are removing webkit/ glue, we need a new home for these scripts. BUG=338338 TEST=None R=dpranke@chromium.org Review URL: https://codereview.chromium.org/629083002 Cr-Commit-Position: refs/heads/master@{#299051}
Diffstat (limited to 'blink/tools')
-rw-r--r--blink/tools/OWNERS3
-rwxr-xr-xblink/tools/run_layout_tests.bat1
-rwxr-xr-xblink/tools/run_layout_tests.py21
-rwxr-xr-xblink/tools/run_layout_tests.sh18
4 files changed, 43 insertions, 0 deletions
diff --git a/blink/tools/OWNERS b/blink/tools/OWNERS
new file mode 100644
index 0000000..4fc050a
--- /dev/null
+++ b/blink/tools/OWNERS
@@ -0,0 +1,3 @@
+ojan@chromium.org
+dpranke@chromium.org
+*
diff --git a/blink/tools/run_layout_tests.bat b/blink/tools/run_layout_tests.bat
new file mode 100755
index 0000000..9613b38
--- /dev/null
+++ b/blink/tools/run_layout_tests.bat
@@ -0,0 +1 @@
+@python %~dp0\run_layout_tests.py %*
diff --git a/blink/tools/run_layout_tests.py b/blink/tools/run_layout_tests.py
new file mode 100755
index 0000000..46d8ad0
--- /dev/null
+++ b/blink/tools/run_layout_tests.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Wrapper around
+ third_party/WebKit/Tools/Scripts/run-webkit-tests"""
+import os
+import subprocess
+import sys
+
+def main():
+ src_dir = os.path.abspath(os.path.join(sys.path[0], '..', '..'))
+ script_dir=os.path.join(src_dir, "third_party", "WebKit", "Tools",
+ "Scripts")
+ script = os.path.join(script_dir, 'run-webkit-tests')
+ cmd = [sys.executable, script] + sys.argv[1:]
+ return subprocess.call(cmd)
+
+if __name__ == '__main__':
+ sys.exit(main())
diff --git a/blink/tools/run_layout_tests.sh b/blink/tools/run_layout_tests.sh
new file mode 100755
index 0000000..f2d707e
--- /dev/null
+++ b/blink/tools/run_layout_tests.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+exec_dir=$(dirname $0)
+
+if [ "$OSTYPE" = "cygwin" ]; then
+ SCRIPT=$(cygpath -wa "$exec_dir/run_layout_tests.py")
+else
+ SCRIPT="$exec_dir/run_layout_tests.py"
+fi
+
+PYTHON_PROG=python
+unset PYTHONPATH
+
+"$PYTHON_PROG" "$SCRIPT" "$@"