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

Unified Diff: test/mac/gyptest-xcuitest.py

Issue 1876623002: Adds support for a new target spec: 'mac_xcuitest_bundle'. This allows us to create UI testing bund… (Closed) Base URL: https://chromium.googlesource.com/external/gyp.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 | « pylib/gyp/xcodeproj_file.py ('k') | test/mac/xcuitest/Info.plist » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mac/gyptest-xcuitest.py
diff --git a/test/mac/gyptest-xctest.py b/test/mac/gyptest-xcuitest.py
similarity index 74%
copy from test/mac/gyptest-xctest.py
copy to test/mac/gyptest-xcuitest.py
index a46a5fb3db63211b97b3caa3ba9e91b4a105262b..4e6067e6f5392a8d7bc778cedc5d7e5f5364ed85 100644
--- a/test/mac/gyptest-xctest.py
+++ b/test/mac/gyptest-xcuitest.py
@@ -5,7 +5,7 @@
# found in the LICENSE file.
"""
-Verifies that xctest targets are correctly configured.
+Verifies that xcuitest targets are correctly configured.
"""
import TestGyp
@@ -26,13 +26,14 @@ if sys.platform == 'darwin':
xcode_version, build_number = out.splitlines()
# Convert the version string from 'Xcode 5.0' to ['5','0'].
xcode_version = xcode_version.split()[-1].split('.')
- if xcode_version < ['5']:
+ if xcode_version < ['7']:
test.pass_test()
- CHDIR = 'xctest'
+ CHDIR = 'xcuitest'
test.run_gyp('test.gyp', chdir=CHDIR)
- test.build('test.gyp', chdir=CHDIR, arguments=['-scheme', 'classes', 'test'])
+ test.build('test.gyp', chdir=CHDIR, arguments=[
+ '-target', 'tests',
+ '-sdk', 'iphonesimulator',
+ ])
- test.built_file_must_match('tests.xctest/Contents/Resources/resource.txt',
- 'foo\n', chdir=CHDIR)
test.pass_test()
« no previous file with comments | « pylib/gyp/xcodeproj_file.py ('k') | test/mac/xcuitest/Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698