gyptest-postbuild-multiple-configurations.py 687 B

1234567891011121314151617181920212223242526
  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. Verifies that a postbuild work in projects with multiple configurations.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'darwin':
  11. test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
  12. CHDIR = 'postbuild-multiple-configurations'
  13. test.run_gyp('test.gyp', chdir=CHDIR)
  14. for configuration in ['Debug', 'Release']:
  15. test.set_configuration(configuration)
  16. test.build('test.gyp', test.ALL, chdir=CHDIR)
  17. test.built_file_must_exist('postbuild-file', chdir=CHDIR)
  18. test.pass_test()