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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 'UseFAT32Workaround': 'true', | 260 'UseFAT32Workaround': 'true', |
261 'UseUnicodeResponseFiles': 'true', | 261 'UseUnicodeResponseFiles': 'true', |
262 'VerboseOutput': 'true'}}, | 262 'VerboseOutput': 'true'}}, |
263 self.stderr) | 263 self.stderr) |
264 self._ExpectedWarnings([ | 264 self._ExpectedWarnings([ |
265 'Warning: for VCCLCompilerTool/BasicRuntimeChecks, ' | 265 'Warning: for VCCLCompilerTool/BasicRuntimeChecks, ' |
266 'index value (5) not in expected range [0, 4)', | 266 'index value (5) not in expected range [0, 4)', |
267 'Warning: for VCCLCompilerTool/BrowseInformation, ' | 267 'Warning: for VCCLCompilerTool/BrowseInformation, ' |
268 "invalid literal for int() with base 10: 'fdkslj'", | 268 "invalid literal for int() with base 10: 'fdkslj'", |
269 'Warning: for VCCLCompilerTool/CallingConvention, ' | 269 'Warning: for VCCLCompilerTool/CallingConvention, ' |
270 'index value (-1) not in expected range [0, 3)', | 270 'index value (-1) not in expected range [0, 4)', |
271 'Warning: for VCCLCompilerTool/DebugInformationFormat, ' | 271 'Warning: for VCCLCompilerTool/DebugInformationFormat, ' |
272 'converted value for 2 not specified.', | 272 'converted value for 2 not specified.', |
273 'Warning: unrecognized setting VCCLCompilerTool/Enableprefast', | 273 'Warning: unrecognized setting VCCLCompilerTool/Enableprefast', |
274 'Warning: unrecognized setting VCCLCompilerTool/ZZXYZ', | 274 'Warning: unrecognized setting VCCLCompilerTool/ZZXYZ', |
275 'Warning: for VCLinkerTool/TargetMachine, ' | 275 'Warning: for VCLinkerTool/TargetMachine, ' |
276 'converted value for 2 not specified.', | 276 'converted value for 2 not specified.', |
277 'Warning: unrecognized setting VCMIDLTool/notgood', | 277 'Warning: unrecognized setting VCMIDLTool/notgood', |
278 'Warning: unrecognized setting VCResourceCompilerTool/notgood2', | 278 'Warning: unrecognized setting VCResourceCompilerTool/notgood2', |
279 'Warning: for VCManifestTool/UpdateFileHashes, ' | 279 'Warning: for VCManifestTool/UpdateFileHashes, ' |
280 "expected bool; got 'truel'" | 280 "expected bool; got 'truel'" |
(...skipping 1193 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 |