Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: test/same-target-name-different-directory/gyptest-all.gyp

Issue 10447063: Fix make and ninja backends to sensibly handle duplicate target names in different directories (Closed) Base URL: http://git.chromium.org/external/gyp.git@master
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/same-target-name-different-directory/gyptest-all.gyp
===================================================================
--- test/same-target-name-different-directory/gyptest-all.gyp (revision 0)
+++ test/same-target-name-different-directory/gyptest-all.gyp (revision 0)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
Nico 2012/06/07 19:19:29 This needs to be called 'gyptest-all.py', else `py
Steve Block 2012/06/08 12:20:18 Argh, not sure how the name got mangled. I don't h
+
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Test cases when multiple targets in different directories have the same name.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('subdirs.gyp', chdir='src')
+
+test.relocate('src', 'relocate/src')
+
+# Test that we build all targets.
+test.build('subdirs.gyp', 'target', chdir='relocate/src')
+test.must_exist('relocate/src/subdir1/action1.txt')
+test.must_exist('relocate/src/subdir2/action2.txt')
+
+# Test that we build all targets using the correct actions, even if they have
+# the same names.
+test.build('subdirs.gyp', 'target_same_action_name', chdir='relocate/src')
+test.must_exist('relocate/src/subdir1/action.txt')
+test.must_exist('relocate/src/subdir2/action.txt')
+
+test.pass_test()
Property changes on: test/same-target-name-different-directory/gyptest-all.gyp
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « test/intermediate_dir/gyptest-intermediate-dir.py ('k') | test/same-target-name-different-directory/src/subdir1/subdir1.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698