Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 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 | import TestMac |
| 13 | |
| 14 | import os |
| 15 | import sys |
| 16 | |
| 17 | if sys.platform == 'darwin': |
| 18 | # Xcode 4.2 on OS X 10.6 doesn't install the libc++ headers, don't run this |
| 19 | # test there. |
| 20 | if TestMac.Xcode.Version() <= '0420': |
| 21 | sys.exit(0) |
| 22 | |
| 23 | test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode']) |
| 24 | test.run_gyp('clang-cxx-library.gyp', chdir='clang-cxx-library') |
| 25 | test.build('clang-cxx-library.gyp', test.ALL, chdir='clang-cxx-library') |
| 26 | |
| 27 | test.pass_test() |
| 28 | |