gyptest-static.py 740 B

1234567891011121314151617181920212223242526272829
  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. Checks that gyp succeeds on static_library targets which have several files with
  7. the same basename.
  8. """
  9. import os
  10. import sys
  11. import TestGyp
  12. test = TestGyp.TestGyp()
  13. if ((test.format == 'make' and sys.platform == 'darwin') or
  14. (test.format == 'msvs' and
  15. int(os.environ.get('GYP_MSVS_VERSION', 2010)) < 2010)):
  16. test.run_gyp('double-static.gyp',
  17. chdir='src', status=1, stderr=None)
  18. else:
  19. test.run_gyp('double-static.gyp',
  20. chdir='src')
  21. test.build('double-static.gyp', test.ALL, chdir='src')
  22. test.pass_test()