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