OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 Google Inc. All rights reserved. | 2 # Copyright (c) 2011 Google Inc. All rights reserved. |
3 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) | 3 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | 30 |
31 import os | 31 import os |
32 import sys | 32 import sys |
33 | 33 |
| 34 from webkitpy.bindings import bindings_path_finder |
| 35 |
34 dirname = os.path.dirname | 36 dirname = os.path.dirname |
35 scripts_dir = dirname(os.path.realpath(__file__)) | 37 scripts_dir = dirname(os.path.realpath(__file__)) |
36 chromium_src_dir = dirname(dirname(dirname(dirname(scripts_dir)))) | 38 chromium_src_dir = dirname(dirname(dirname(dirname(scripts_dir)))) |
37 | 39 |
38 path_to_typ = os.path.join(chromium_src_dir, 'third_party', 'typ') | 40 path_to_typ = os.path.join(chromium_src_dir, 'third_party', 'typ') |
39 if path_to_typ not in sys.path: | 41 if path_to_typ not in sys.path: |
40 sys.path.append(path_to_typ) | 42 sys.path.append(path_to_typ) |
41 | 43 |
42 import typ | 44 import typ |
43 | 45 |
44 skip = [] | 46 skip = [] |
45 if sys.platform == 'win32': | 47 if sys.platform == 'win32': |
46 # These test fail on win32. We could annotate some of these in | 48 # These test fail on win32. We could annotate some of these in |
47 # class-level skips, but we don't support package/module-level skips. | 49 # class-level skips, but we don't support package/module-level skips. |
48 # bugs.webkit.org/show_bug.cgi?id=54526 . | 50 # bugs.webkit.org/show_bug.cgi?id=54526 . |
49 skip = [ | 51 skip = [ |
50 'webkitpy.common.checkout.*', | 52 'webkitpy.common.checkout.*', |
51 'webkitpy.common.config.*', | 53 'webkitpy.common.config.*', |
52 'webkitpy.tool.*', | 54 'webkitpy.tool.*', |
53 'webkitpy.w3c.*', | 55 'webkitpy.w3c.*', |
54 'webkitpy.layout_tests.layout_package.bot_test_expectations_unittest.*', | 56 'webkitpy.layout_tests.layout_package.bot_test_expectations_unittest.*', |
55 ] | 57 ] |
56 | 58 |
57 sys.exit(typ.main(top_level_dir=scripts_dir, | 59 ret = typ.main(top_level_dir=scripts_dir, |
58 skip=skip, | 60 skip=skip, |
59 path=[os.path.join(scripts_dir, 'webkitpy', 'thirdparty')], | 61 path=[os.path.join(scripts_dir, 'webkitpy', 'thirdparty')], |
60 win_multiprocessing='spawn')) | 62 win_multiprocessing='spawn') |
| 63 if ret == 0: |
| 64 ret = typ.main(top_level_dir=bindings_path_finder.get_bindings_scripts(), |
| 65 skip=[], |
| 66 path=[os.path.join(scripts_dir, 'webkitpy', 'thirdparty')], |
| 67 win_multiprocessing='spawn') |
| 68 sys.exit(ret) |
OLD | NEW |