michael@0: #!/usr/bin/env python michael@0: michael@0: # Copyright (c) 2012 Google Inc. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: """ michael@0: Tests the use of rules with the same output file name. michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: test = TestGyp.TestGyp() michael@0: michael@0: test.run_gyp('subdirs.gyp', chdir='src') michael@0: michael@0: test.relocate('src', 'relocate/src') michael@0: michael@0: test.build('subdirs.gyp', test.ALL, chdir='relocate/src') michael@0: test.must_exist('relocate/src/subdir1/rule.txt') michael@0: test.must_exist('relocate/src/subdir2/rule.txt') michael@0: michael@0: test.pass_test()