blob: 09b00d958ba1755c40d5351e953e398a3e86e0fd [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
3# Copyright (c) 2009 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"""
8Verify that dependencies don't pull unused targets into the build.
9"""
10
11import TestGyp
12
13test = TestGyp.TestGyp()
14
15test.run_gyp('extra_targets.gyp',
16 '-G', 'xcode_ninja_target_pattern=^a$')
17
18# This should fail if it tries to build 'c_unused' since 'c/c.c' has a syntax
19# error and won't compile.
20test.build('extra_targets.gyp', test.ALL)
21
22test.pass_test()