blob: 39a11c75c43bb617b7d2fa60b103da12bdbea56b [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/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"""
8Verifies that CLANG_CXX_LIBRARY works.
9"""
10
11import TestGyp
12import TestMac
13
14import os
15import sys
16
17if 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