gyptest-clang-cxx-library.py 672 B

1234567891011121314151617181920212223242526272829
  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 os
  10. import sys
  11. if sys.platform == 'darwin':
  12. test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode'])
  13. # Xcode 4.2 on OS X 10.6 doesn't install the libc++ headers, don't run this
  14. # test there.
  15. if not os.path.isdir('/usr/lib/c++'):
  16. sys.exit(0)
  17. test.run_gyp('clang-cxx-library.gyp', chdir='clang-cxx-library')
  18. test.build('clang-cxx-library.gyp', test.ALL, chdir='clang-cxx-library')
  19. test.pass_test()