Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 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 | """ |
| 8 | Verifies that kext bundles are built correctly. |
| 9 | """ |
| 10 | |
| 11 | import TestGyp |
| 12 | import TestMac |
| 13 | |
| 14 | import os |
| 15 | import plistlib |
| 16 | import subprocess |
| 17 | import sys |
| 18 | |
| 19 | if 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() |