• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2
3# Copyright (c) 2012 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 mac bundles work with --generator-output.
9"""
10
11import TestGyp
12
13import sys
14
15if sys.platform == 'darwin':
16  test = TestGyp.TestGyp(formats=[])
17
18  MAC_BUNDLE_DIR = 'mac-bundle'
19  GYPFILES_DIR = 'gypfiles'
20  test.writable(test.workpath(MAC_BUNDLE_DIR), False)
21  test.run_gyp('test.gyp',
22               '--generator-output=' + test.workpath(GYPFILES_DIR),
23               chdir=MAC_BUNDLE_DIR)
24  test.writable(test.workpath(MAC_BUNDLE_DIR), True)
25
26  test.build('test.gyp', test.ALL, chdir=GYPFILES_DIR)
27
28  test.pass_test()
29