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""" 8Tests the use of rules with the same output file name. 9""" 10 11import TestGyp 12 13test = TestGyp.TestGyp() 14 15test.run_gyp('subdirs.gyp', chdir='src') 16 17test.relocate('src', 'relocate/src') 18 19test.build('subdirs.gyp', test.ALL, chdir='relocate/src') 20test.must_exist('relocate/src/subdir1/rule.txt') 21test.must_exist('relocate/src/subdir2/rule.txt') 22 23test.pass_test() 24