• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2
3# Copyright (c) 2015 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 kext bundles are built correctly.
9"""
10
11import TestGyp
12import TestMac
13
14import os
15import plistlib
16import subprocess
17import sys
18
19if sys.platform == 'darwin':
20  test = TestGyp.TestGyp(formats=['xcode'])
21  test.run_gyp('kext.gyp', chdir='kext')
22  test.build('kext.gyp', test.ALL, chdir='kext')
23  test.built_file_must_exist('GypKext.kext/Contents/MacOS/GypKext',
24                             chdir='kext')
25  test.built_file_must_exist('GypKext.kext/Contents/Info.plist',
26                             chdir='kext')
27  test.pass_test()
28