summaryrefslogtreecommitdiffstats
path: root/webkit/tools/layout_tests/rebaseline.sh
diff options
context:
space:
mode:
authorvictorw@chromium.org <victorw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 16:05:43 +0000
committervictorw@chromium.org <victorw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 16:05:43 +0000
commit2017788243cf8862d9801ff744b87b2b524076ea (patch)
tree23a573d4d3a1190eef5e0d12112655d9ee0b2305 /webkit/tools/layout_tests/rebaseline.sh
parent2470064d88c482eb60eb4d284047140cff1d54d0 (diff)
downloadchromium_src-2017788243cf8862d9801ff744b87b2b524076ea.zip
chromium_src-2017788243cf8862d9801ff744b87b2b524076ea.tar.gz
chromium_src-2017788243cf8862d9801ff744b87b2b524076ea.tar.bz2
Rebaselining tool that automatically produces baselines for all platforms.
The script does the following for each platform specified: 1. Compile a list of tests that need rebaseline. 2. Download test result archive from buildbot for the platform. 3. Extract baselines from the archive file for all identified files. 4. Add new baselines to SVN repository. 5. For each test that has been rebaselined, remove this platform option from the test in test_expectation.txt. If no other platforms remaining after removal, delete the rebaselined test from the file. BUG=11744 Review URL: http://codereview.chromium.org/115666 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/layout_tests/rebaseline.sh')
-rw-r--r--webkit/tools/layout_tests/rebaseline.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/webkit/tools/layout_tests/rebaseline.sh b/webkit/tools/layout_tests/rebaseline.sh
new file mode 100644
index 0000000..1499bc5
--- /dev/null
+++ b/webkit/tools/layout_tests/rebaseline.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+exec_dir=$(dirname $0)
+
+if [ "$OSTYPE" = "cygwin" ]; then
+ system_root=`cygpath "$SYSTEMROOT"`
+ PATH="/usr/bin:$system_root/system32:$system_root:$system_root/system32/WBEM"
+ export PATH
+ PYTHON_PROG="$exec_dir/../../../third_party/python_24/python.exe"
+else
+ PYTHON_PROG=python
+ # When not using the included python, we don't get automatic site.py paths.
+ # Specifically, run_webkit_tests needs the paths in:
+ # third_party/python_24/Lib/site-packages/google.pth
+ PYTHONPATH="${exec_dir}/../../../tools/python:$PYTHONPATH"
+ export PYTHONPATH
+fi
+
+"$PYTHON_PROG" "$exec_dir/rebaseline.py" "$@"