| # Copyright (c) 2011 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. |
| 1. OpenSSL library - http://www.openssl.org/ |
| 2. Python interface to the OpenSSL library - https://launchpad.net/pyopenssl |
| python run.py -t <test_dir> |
| from optparse import OptionParser |
| driver = playback_driver.PlaybackRequestHandler(options.test_dir) |
| httpd = proxy_handler.CreateServer(driver, options.port) |
| sa = httpd.socket.getsockname() |
| print "Serving HTTP on", sa[0], "port", sa[1], "..." |
| parser.add_option("-t", "--test-dir", dest="test_dir", |
| help="directory containing recorded test data") |
| parser.add_option("-p", "--port", dest="port", type="int", default=8000) |
| options = parser.parse_args()[0] |
| raise Exception('please specify test directory') |
| if __name__ == '__main__': |