gyptest-shared.py 670 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. Checks that gyp succeeds on shared_library targets which have several files with
  7. the same basename.
  8. """
  9. import os
  10. import TestGyp
  11. test = TestGyp.TestGyp()
  12. if ((test.format == 'msvs') and
  13. (int(os.environ.get('GYP_MSVS_VERSION', 2010)) < 2010)):
  14. test.run_gyp('double-shared.gyp',
  15. chdir='src', status=0, stderr=None)
  16. else:
  17. test.run_gyp('double-shared.gyp',
  18. chdir='src')
  19. test.build('double-shared.gyp', test.ALL, chdir='src')
  20. test.pass_test()