summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 20:56:29 +0000
committermmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 20:56:29 +0000
commit25380a24e0c7114fe2b512a12a56962342b8accc (patch)
treed243cbbb43ad32bf29bff807bd1e325d92efbfa1
parenta54c990acf6b837c6fb576a5a0809d867b41df01 (diff)
downloadchromium_src-25380a24e0c7114fe2b512a12a56962342b8accc.zip
chromium_src-25380a24e0c7114fe2b512a12a56962342b8accc.tar.gz
chromium_src-25380a24e0c7114fe2b512a12a56962342b8accc.tar.bz2
Add Linux lighttpd for running LayoutTests on Linux.
Updated to use system lighttpd and php-cgi. This is based on the Hardy packages and file layout. YMMV with other distros. BUG=4281 Review URL: http://codereview.chromium.org/10653 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5633 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xbuild/install-build-deps.sh2
-rw-r--r--webkit/tools/layout_tests/layout_package/http_server.py5
-rw-r--r--webkit/tools/layout_tests/layout_package/platform_utils_linux.py21
3 files changed, 22 insertions, 6 deletions
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index f095217..828218f 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -29,7 +29,7 @@ download_deb() {
install_hardy() {
sudo apt-get install subversion pkg-config python perl g++ g++-multilib \
bison flex gperf libnss3-dev libglib2.0-dev libgtk2.0-dev \
- libnspr4-0d libnspr4-dev wdiff
+ libnspr4-0d libnspr4-dev wdiff lighttpd php5-cgi
wget -c http://www.trevp.com/tlslite/tlslite-0.3.8.tar.gz
tar xvfz tlslite-0.3.8.tar.gz
diff --git a/webkit/tools/layout_tests/layout_package/http_server.py b/webkit/tools/layout_tests/layout_package/http_server.py
index 0369f81..c8ca8675 100644
--- a/webkit/tools/layout_tests/layout_package/http_server.py
+++ b/webkit/tools/layout_tests/layout_package/http_server.py
@@ -127,8 +127,9 @@ class Lighttpd:
# Put the cygwin directory first in the path to find cygwin1.dll
env = os.environ
- env['PATH'] = '%s;%s' % (
- PathFromBase('third_party', 'cygwin', 'bin'), env['PATH'])
+ if sys.platform in ('cygwin', 'win32'):
+ env['PATH'] = '%s;%s' % (
+ PathFromBase('third_party', 'cygwin', 'bin'), env['PATH'])
logging.info('Starting http server')
self._process = subprocess.Popen(start_cmd, env=env)
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
index ca5308e..b69e642 100644
--- a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
+++ b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
@@ -93,15 +93,30 @@ class PlatformUtility(object):
def LigHTTPdExecutablePath(self):
"""Returns the executable path to start LigHTTPd"""
- return PathFromBase('third_party', 'lighttpd', 'linux', 'bin', 'lighttpd')
+ binpath = "/usr/sbin/lighttpd"
+ if os.path.exists(binpath):
+ return binpath
+ print "Unable to find LigHTTPd executable %s" % binpath
+ print 'Please install using "sudo apt-get install lighttpd php5cgi"'
+ sys.exit(1)
def LigHTTPdModulePath(self):
"""Returns the library module path for LigHTTPd"""
- return PathFromBase('third_party', 'lighttpd', 'linux', 'lib')
+ modpath = "/usr/lib/lighttpd"
+ if os.path.exists(modpath):
+ return modpath
+ print "Unable to find LigHTTPd modules %s" % modpath
+ print 'Please install using "sudo apt-get install lighttpd php5cgi"'
+ sys.exit(1)
def LigHTTPdPHPPath(self):
"""Returns the PHP executable path for LigHTTPd"""
- return PathFromBase('third_party', 'lighttpd', 'linux', 'bin', 'php-cgi')
+ binpath = "/usr/bin/php-cgi"
+ if os.path.exists(binpath):
+ return binpath
+ print "Unable to find PHP CGI executable %s" % binpath
+ print 'Please install using "sudo apt-get install lighttpd php5cgi"'
+ sys.exit(1)
def ShutDownHTTPServer(self, server_process):
"""Shut down the lighttpd web server. Blocks until it's fully shut down.