1 #!/usr/bin/env python 2 3 # Copyright (c) 2013 Google Inc. All rights reserved. 4 # Use of this source code is governed by a BSD-style license that can be 5 # found in the LICENSE file. 6 7 """ 8 Verifies that CLANG_CXX_LIBRARY works. 9 """ 10 11 import TestGyp 12 13 import os 14 import sys 15 16 if sys.platform == 'darwin': 17 test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode']) 18 19 # Xcode 4.2 on OS X 10.6 doesn't install the libc++ headers, don't run this 20 # test there. 21 if not os.path.isdir('/usr/lib/c++'): 22 sys.exit(0) 23 24 test.run_gyp('clang-cxx-library.gyp', chdir='clang-cxx-library') 25 26 test.build('clang-cxx-library.gyp', test.ALL, chdir='clang-cxx-library') 27 28 test.pass_test() 29 30