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

Unified Diff: test/actions/gyptest-default.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years, 4 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/actions/gyptest-default.py
diff --git a/test/actions/gyptest-default.py b/test/actions/gyptest-default.py
index f5b4e35105857dbf8d128d762bf6c12b647c382a..9b5a917eefdb979535945f4fbb44dbf924b19f1c 100755
--- a/test/actions/gyptest-default.py
+++ b/test/actions/gyptest-default.py
@@ -12,7 +12,9 @@ import TestGyp
test = TestGyp.TestGyp(workdir='workarea_default')
-test.run_gyp('actions.gyp', chdir='src')
+test.run_gyp('actions.gyp',
+ '-G', 'xcode_ninja_target_pattern=^.*$',
+ chdir='src')
test.relocate('src', 'relocate/src')
@@ -21,7 +23,7 @@ test.relocate('src', 'relocate/src')
# doesn't mesh well with ninja's semantics. TODO(evan): figure out
# how to work always-run actions in to ninja.
# Android also can't do this as it doesn't have order-only dependencies.
-if test.format in ['ninja', 'android']:
+if test.format in ['ninja', 'android', 'xcode-ninja']:
test.build('actions.gyp', test.ALL, chdir='relocate/src')
else:
# Test that an "always run" action increases a counter on multiple

Powered by Google App Engine
This is Rietveld 408576698