gyptest-xcode-ninja.py 599 B

12345678910111213141516171819202122232425
  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. Verify that the xcode-ninja GYP_GENERATOR runs and builds correctly.
  7. """
  8. import TestGyp
  9. import os
  10. import sys
  11. if sys.platform == 'darwin':
  12. test = TestGyp.TestGyp(formats=['xcode'])
  13. # Run ninja and xcode-ninja
  14. test.formats = ['ninja', 'xcode-ninja']
  15. test.run_gyp('test.gyp', chdir='app-bundle')
  16. # If it builds the target, it works.
  17. test.build('test.ninja.gyp', chdir='app-bundle')
  18. test.pass_test()