gyptest-macro-targetext.py 815 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # Copyright (c) 2014 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 macro expansion of $(TargetExt) is handled.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'win32':
  11. test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
  12. CHDIR = 'vs-macros'
  13. test.run_gyp('targetext.gyp', chdir=CHDIR)
  14. test.build('targetext.gyp', test.ALL, chdir=CHDIR)
  15. test.built_file_must_exist('executable.exe', chdir=CHDIR)
  16. test.built_file_must_exist('loadable_module.dll', chdir=CHDIR)
  17. test.built_file_must_exist('shared_library.dll', chdir=CHDIR)
  18. test.built_file_must_exist('static_library.lib', chdir=CHDIR)
  19. test.built_file_must_exist('product_extension.library', chdir=CHDIR)
  20. test.pass_test()