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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 idl_compiler = IdlCompilerV8(output_directory, | 192 idl_compiler = IdlCompilerV8(output_directory, |
193 interfaces_info=interfaces_info, | 193 interfaces_info=interfaces_info, |
194 only_if_changed=True) | 194 only_if_changed=True) |
195 | 195 |
196 idl_basenames = [filename | 196 idl_basenames = [filename |
197 for filename in os.listdir(test_input_directory) | 197 for filename in os.listdir(test_input_directory) |
198 if (filename.endswith('.idl') and | 198 if (filename.endswith('.idl') and |
199 # Dependencies aren't built | 199 # Dependencies aren't built |
200 # (they are used by the dependent) | 200 # (they are used by the dependent) |
201 filename not in DEPENDENCY_IDL_FILES)] | 201 filename not in DEPENDENCY_IDL_FILES)] |
202 idl_basenames = ['TestExposedInterface.idl'] | |
Peter Beverloo
2014/07/30 16:03:45
Disregard this for now please.
| |
202 for idl_basename in idl_basenames: | 203 for idl_basename in idl_basenames: |
203 idl_path = os.path.realpath( | 204 idl_path = os.path.realpath( |
204 os.path.join(test_input_directory, idl_basename)) | 205 os.path.join(test_input_directory, idl_basename)) |
205 idl_compiler.compile_file(idl_path) | 206 idl_compiler.compile_file(idl_path) |
206 if verbose: | 207 if verbose: |
207 print 'Compiled: %s' % filename | 208 print 'Compiled: %s' % filename |
208 finally: | 209 finally: |
209 delete_cache_files() | 210 delete_cache_files() |
210 | 211 |
211 # Detect all changes | 212 # Detect all changes |
(...skipping 11 matching lines...) Expand all Loading... | |
223 | 224 |
224 | 225 |
225 def run_bindings_tests(reset_results, verbose): | 226 def run_bindings_tests(reset_results, verbose): |
226 # Generate output into the reference directory if resetting results, or | 227 # Generate output into the reference directory if resetting results, or |
227 # a temp directory if not. | 228 # a temp directory if not. |
228 if reset_results: | 229 if reset_results: |
229 print 'Resetting results' | 230 print 'Resetting results' |
230 return bindings_tests(reference_directory, verbose) | 231 return bindings_tests(reference_directory, verbose) |
231 with TemporaryDirectory() as temp_dir: | 232 with TemporaryDirectory() as temp_dir: |
232 return bindings_tests(temp_dir, verbose) | 233 return bindings_tests(temp_dir, verbose) |
OLD | NEW |