gyptest-link-outputfile.py 792 B

12345678910111213141516171819202122232425262728
  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 linker OutputFile setting is extracted properly.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'win32':
  11. test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
  12. CHDIR = 'linker-flags'
  13. test.run_gyp('outputfile.gyp', chdir=CHDIR)
  14. test.build('outputfile.gyp', test.ALL, chdir=CHDIR)
  15. test.built_file_must_exist('blorp.exe', chdir=CHDIR)
  16. test.built_file_must_exist('blorp.dll', chdir=CHDIR)
  17. test.built_file_must_exist('subdir/blorp.exe', chdir=CHDIR)
  18. test.built_file_must_exist('blorp.lib', chdir=CHDIR)
  19. test.built_file_must_exist('subdir/blorp.lib', chdir=CHDIR)
  20. test.pass_test()