gyptest-clang-cxx-library.py 685 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # Copyright (c) 2013 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 CLANG_CXX_LIBRARY works.
  7. """
  8. import TestGyp
  9. import TestMac
  10. import os
  11. import sys
  12. if sys.platform == 'darwin':
  13. # Xcode 4.2 on OS X 10.6 doesn't install the libc++ headers, don't run this
  14. # test there.
  15. if TestMac.Xcode.Version() <= '0420':
  16. sys.exit(0)
  17. test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode'])
  18. test.run_gyp('clang-cxx-library.gyp', chdir='clang-cxx-library')
  19. test.build('clang-cxx-library.gyp', test.ALL, chdir='clang-cxx-library')
  20. test.pass_test()