gyptest-cl-pdbname-override.py 742 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 Google Inc. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """
  6. Make sure pdb is named as expected (shared between .cc files).
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'win32':
  11. test = TestGyp.TestGyp()
  12. CHDIR = 'compiler-flags'
  13. test.run_gyp('pdbname-override.gyp', chdir=CHDIR)
  14. test.build('pdbname-override.gyp', test.ALL, chdir=CHDIR)
  15. # Confirm that the pdb generated by the compiler was renamed (and we also
  16. # have the linker generated one).
  17. test.built_file_must_exist('compiler_generated.pdb', chdir=CHDIR)
  18. test.built_file_must_exist('linker_generated.pdb', chdir=CHDIR)
  19. test.pass_test()