OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 exec_dir=$(dirname $0) | 7 exec_dir=$(dirname $0) |
4 | 8 |
5 if [ "$OSTYPE" = "cygwin" ]; then | 9 if [ "$OSTYPE" = "cygwin" ]; then |
6 system_root=`cygpath "$SYSTEMROOT"` | 10 system_root=`cygpath "$SYSTEMROOT"` |
7 PATH="/usr/bin:$system_root/system32:$system_root:$system_root/system32/WBEM" | 11 PATH="/usr/bin:$system_root/system32:$system_root:$system_root/system32/WBEM" |
8 export PATH | 12 export PATH |
9 PYTHON_PROG="$exec_dir/../../../third_party/python_24/python.exe" | 13 PYTHON_PROG="$exec_dir/../../../third_party/python_24/python.exe" |
10 else | 14 else |
11 PYTHON_PROG=python | 15 PYTHON_PROG=python |
12 # When not using the included python, we don't get automatic site.py paths. | 16 # When not using the included python, we don't get automatic site.py paths. |
13 # Specifically, run_webkit_tests needs the paths in: | 17 # Specifically, run_webkit_tests needs the paths in: |
14 # third_party/python_24/Lib/site-packages/google.pth | 18 # third_party/python_24/Lib/site-packages/google.pth |
15 PYTHONPATH="${exec_dir}/../../../tools/python:$PYTHONPATH" | 19 PYTHONPATH="${exec_dir}/../../../tools/python:$PYTHONPATH" |
16 export PYTHONPATH | 20 export PYTHONPATH |
17 fi | 21 fi |
18 | 22 |
19 "$PYTHON_PROG" "$exec_dir/run_webkit_tests.py" "$@" | 23 "$PYTHON_PROG" "$exec_dir/run_webkit_tests.py" "$@" |
OLD | NEW |