1#!/usr/bin/env python 2 3# Copyright (c) 2011 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 static library dependencies don't traverse none targets, unless 9explicitly specified. 10""" 11 12import TestGyp 13 14import sys 15 16test = TestGyp.TestGyp() 17 18test.run_gyp('none_traversal.gyp') 19 20test.build('none_traversal.gyp', test.ALL) 21 22test.run_built_executable('needs_chain', stdout="2\n") 23test.run_built_executable('doesnt_need_chain', stdout="3\n") 24 25test.pass_test() 26