commit-queue@webkit.org | 026ee04 | 2018-01-04 07:18:18 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 2 | |
bfulgham@apple.com | 89db442 | 2015-01-30 18:26:36 +0000 | [diff] [blame] | 3 | # Copyright (C) 2005, 2006, 2007, 2015 Apple Inc. All rights reserved. |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 4 | # Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
dbates@webkit.org | ac2e3a3 | 2011-01-31 22:32:42 +0000 | [diff] [blame] | 5 | # Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 6 | # |
| 7 | # Redistribution and use in source and binary forms, with or without |
| 8 | # modification, are permitted provided that the following conditions |
| 9 | # are met: |
| 10 | # |
| 11 | # 1. Redistributions of source code must retain the above copyright |
commit-queue@webkit.org | 374da2c | 2017-05-23 15:56:12 +0000 | [diff] [blame] | 12 | # notice, this list of conditions and the following disclaimer. |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
| 14 | # notice, this list of conditions and the following disclaimer in the |
commit-queue@webkit.org | 374da2c | 2017-05-23 15:56:12 +0000 | [diff] [blame] | 15 | # documentation and/or other materials provided with the distribution. |
ddkilzer | 1cb3727 | 2007-07-13 18:16:15 +0000 | [diff] [blame] | 16 | # 3. Neither the name of Apple Inc. ("Apple") nor the names of |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 17 | # its contributors may be used to endorse or promote products derived |
commit-queue@webkit.org | 374da2c | 2017-05-23 15:56:12 +0000 | [diff] [blame] | 18 | # from this software without specific prior written permission. |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 19 | # |
| 20 | # THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
| 21 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 22 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 23 | # DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 24 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 25 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 26 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 27 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 29 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | |
jer.noble@apple.com | 52d5624 | 2016-02-18 22:31:49 +0000 | [diff] [blame] | 31 | import sys |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 32 | |
commit-queue@webkit.org | 374da2c | 2017-05-23 15:56:12 +0000 | [diff] [blame] | 33 | from webkitpy.layout_tests.servers.run_webkit_httpd import parse_args, run_server |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 34 | |
ap | 1dc19f0 | 2006-06-22 17:18:39 +0000 | [diff] [blame] | 35 | |
jer.noble@apple.com | 52d5624 | 2016-02-18 22:31:49 +0000 | [diff] [blame] | 36 | def main(argv, stdout, stderr): |
| 37 | options, args = parse_args(argv) |
commit-queue@webkit.org | 374da2c | 2017-05-23 15:56:12 +0000 | [diff] [blame] | 38 | run_server(options, args, stdout, stderr) |
commit-queue@webkit.org | e258a89 | 2016-07-02 17:45:57 +0000 | [diff] [blame] | 39 | |
ap | e0deea4 | 2006-06-21 16:21:19 +0000 | [diff] [blame] | 40 | |
jer.noble@apple.com | 52d5624 | 2016-02-18 22:31:49 +0000 | [diff] [blame] | 41 | if __name__ == '__main__': |
| 42 | sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) |