OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Unit tests for the MSVSSettings.py file.""" | 7 """Unit tests for the MSVSSettings.py file.""" |
8 | 8 |
9 import StringIO | 9 import StringIO |
10 import unittest | 10 import unittest |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 'AdditionalUsingDirectories': 'folder1;folder2', | 289 'AdditionalUsingDirectories': 'folder1;folder2', |
290 'AssemblerListingLocation': 'a_file_name', | 290 'AssemblerListingLocation': 'a_file_name', |
291 'AssemblerOutput': 'NoListing', | 291 'AssemblerOutput': 'NoListing', |
292 'BasicRuntimeChecks': 'StackFrameRuntimeCheck', | 292 'BasicRuntimeChecks': 'StackFrameRuntimeCheck', |
293 'BrowseInformation': 'false', | 293 'BrowseInformation': 'false', |
294 'BrowseInformationFile': 'a_file_name', | 294 'BrowseInformationFile': 'a_file_name', |
295 'BufferSecurityCheck': 'true', | 295 'BufferSecurityCheck': 'true', |
296 'BuildingInIDE': 'true', | 296 'BuildingInIDE': 'true', |
297 'CallingConvention': 'Cdecl', | 297 'CallingConvention': 'Cdecl', |
298 'CompileAs': 'CompileAsC', | 298 'CompileAs': 'CompileAsC', |
299 'CompileAsManaged': 'Pure', | 299 'CompileAsManaged': 'true', |
300 'CreateHotpatchableImage': 'true', | 300 'CreateHotpatchableImage': 'true', |
301 'DebugInformationFormat': 'ProgramDatabase', | 301 'DebugInformationFormat': 'ProgramDatabase', |
302 'DisableLanguageExtensions': 'true', | 302 'DisableLanguageExtensions': 'true', |
303 'DisableSpecificWarnings': 'string1;string2', | 303 'DisableSpecificWarnings': 'string1;string2', |
304 'EnableEnhancedInstructionSet': 'StreamingSIMDExtensions', | 304 'EnableEnhancedInstructionSet': 'StreamingSIMDExtensions', |
305 'EnableFiberSafeOptimizations': 'true', | 305 'EnableFiberSafeOptimizations': 'true', |
306 'EnablePREfast': 'true', | 306 'EnablePREfast': 'true', |
307 'Enableprefast': 'bogus', | 307 'Enableprefast': 'bogus', |
308 'ErrorReporting': 'Prompt', | 308 'ErrorReporting': 'Prompt', |
309 'ExceptionHandling': 'SyncCThrow', | 309 'ExceptionHandling': 'SyncCThrow', |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 } | 1474 } |
1475 actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings( | 1475 actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings( |
1476 msvs_settings, | 1476 msvs_settings, |
1477 self.stderr) | 1477 self.stderr) |
1478 self.assertEqual(expected_msbuild_settings, actual_msbuild_settings) | 1478 self.assertEqual(expected_msbuild_settings, actual_msbuild_settings) |
1479 self._ExpectedWarnings([]) | 1479 self._ExpectedWarnings([]) |
1480 | 1480 |
1481 | 1481 |
1482 if __name__ == '__main__': | 1482 if __name__ == '__main__': |
1483 unittest.main() | 1483 unittest.main() |
OLD | NEW |