1ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org#!/usr/bin/env python 2ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 3ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org# Copyright (c) 2012 Google Inc. All rights reserved. 4ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org# Use of this source code is governed by a BSD-style license that can be 5ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org# found in the LICENSE file. 6ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 7ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org""" 8ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgTests the use of rules with the same output file name. 9ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org""" 10ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 11ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgimport TestGyp 12ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 13ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest = TestGyp.TestGyp() 14ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 15ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest.run_gyp('subdirs.gyp', chdir='src') 16ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 17ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest.relocate('src', 'relocate/src') 18ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 19ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest.build('subdirs.gyp', test.ALL, chdir='relocate/src') 20ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest.must_exist('relocate/src/subdir1/rule.txt') 21ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest.must_exist('relocate/src/subdir2/rule.txt') 22ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.org 23ba7d1a2a10920fe6675bc61dd4b4237f39ba7493thakis@chromium.orgtest.pass_test() 24