OLD | NEW |
1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions | 4 # modification, are permitted provided that the following conditions |
5 # are met: | 5 # are met: |
6 # 1. Redistributions of source code must retain the above copyright | 6 # 1. Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # 2. Redistributions in binary form must reproduce the above copyright | 8 # 2. Redistributions in binary form must reproduce the above copyright |
9 # notice, this list of conditions and the following disclaimer in the | 9 # notice, this list of conditions and the following disclaimer in the |
10 # documentation and/or other materials provided with the distribution. | 10 # documentation and/or other materials provided with the distribution. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 To update the reference files, execute: | 47 To update the reference files, execute: |
48 run-bindings-tests --reset-results | 48 run-bindings-tests --reset-results |
49 | 49 |
50 If the failures are not due to your changes, test results may be out of sync; | 50 If the failures are not due to your changes, test results may be out of sync; |
51 please rebaseline them in a separate CL, after checking that tests fail in ToT. | 51 please rebaseline them in a separate CL, after checking that tests fail in ToT. |
52 In CL, please set: | 52 In CL, please set: |
53 NOTRY=true | 53 NOTRY=true |
54 TBR=(someone in Source/bindings/OWNERS or WATCHLISTS:bindings) | 54 TBR=(someone in Source/bindings/OWNERS or WATCHLISTS:bindings) |
55 """ | 55 """ |
56 | 56 |
57 DEPENDENCY_IDL_FILES = set([ | 57 DEPENDENCY_IDL_FILES = frozenset([ |
58 'SupportTestPartialInterface.idl', | |
59 'TestImplements.idl', | 58 'TestImplements.idl', |
60 'TestImplements2.idl', | 59 'TestImplements2.idl', |
61 'TestImplements3.idl', | 60 'TestImplements3.idl', |
62 'TestPartialInterface.idl', | 61 'TestPartialInterface.idl', |
63 'TestPartialInterfacePython.idl', | 62 'TestPartialInterface2.idl', |
64 'TestPartialInterfacePython2.idl', | |
65 ]) | 63 ]) |
66 | 64 |
67 | 65 |
68 EXTENDED_ATTRIBUTES_FILE = os.path.join(source_path, | 66 EXTENDED_ATTRIBUTES_FILE = os.path.join(source_path, |
69 'bindings/IDLExtendedAttributes.txt') | 67 'bindings/IDLExtendedAttributes.txt') |
70 | 68 |
71 test_input_directory = os.path.join(source_path, 'bindings', 'tests', 'idls') | 69 test_input_directory = os.path.join(source_path, 'bindings', 'tests', 'idls') |
72 reference_directory = os.path.join(source_path, 'bindings', 'tests', 'results') | 70 reference_directory = os.path.join(source_path, 'bindings', 'tests', 'results') |
73 | 71 |
74 | 72 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 204 |
207 | 205 |
208 def run_bindings_tests(reset_results, verbose): | 206 def run_bindings_tests(reset_results, verbose): |
209 # Generate output into the reference directory if resetting results, or | 207 # Generate output into the reference directory if resetting results, or |
210 # a temp directory if not. | 208 # a temp directory if not. |
211 if reset_results: | 209 if reset_results: |
212 print 'Resetting results' | 210 print 'Resetting results' |
213 return bindings_tests(reference_directory, verbose) | 211 return bindings_tests(reference_directory, verbose) |
214 with ScopedTempDir() as temp_dir: | 212 with ScopedTempDir() as temp_dir: |
215 return bindings_tests(temp_dir, verbose) | 213 return bindings_tests(temp_dir, verbose) |
OLD | NEW |