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

Unified Diff: ios/web/ios_web_shell_tests.gyp

Issue 1891583003: Allow xctests to embed themselves in their TEST_HOST for Xcode 7.3 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/ios_web_shell_tests.gyp
diff --git a/ios/web/ios_web_shell_tests.gyp b/ios/web/ios_web_shell_tests.gyp
index 79c93e8bbefc0705df753455a88025b185efeb56..806c056c451bea44af2dc1437558d6af11e4c96d 100644
--- a/ios/web/ios_web_shell_tests.gyp
+++ b/ios/web/ios_web_shell_tests.gyp
@@ -14,6 +14,7 @@
{
'variables': {
'test_host': 'ios_web_shell.app/ios_web_shell',
+ 'test_host_name': 'ios_web_shell',
},
'target_name': 'ios_web_shell_test',
'type': 'loadable_module',
@@ -27,7 +28,7 @@
],
'xcode_settings': {
'WRAPPER_EXTENSION': 'xctest',
- 'TEST_HOST': '<(test_host)',
+ 'TEST_HOST': '$(CONFIGURATION_BUILD_DIR)/<(test_host)',
'BUNDLE_LOADER': '$(TEST_HOST)',
'conditions':[
['"<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', {
@@ -46,6 +47,16 @@
'XCTest.framework',
],
},
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'Copy xctest to TEST_HOST',
+ 'action': [
+ 'ditto',
+ '${BUILT_PRODUCTS_DIR}/ios_web_shell_test.xctest',
baxley 2016/04/14 21:48:49 are there two copies of xctest to make sure it wor
+ '${BUILT_PRODUCTS_DIR}/<(test_host_name).app/PlugIns/ios_web_shell_test.xctest',
+ ],
+ },
+ ],
},
],
}, { # GENERATOR == ninja or GENERATOR_FLAVOR == ninja
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698