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

Issue 1410113002: Make ninja work with XCTests for iOS. (Closed)

Created:
5 years, 2 months ago by baxley
Modified:
5 years ago
Reviewers:
Nico, justincohen
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

Make ninja work with XCTests for iOS. Update so XCTests are properly built by ninja, after generating the projects with gyp. This includes correctly handling the bundle settings from gyp, and then adding the correct paths to access XCTest.framework. BUG= R=justincohen@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/863d9a4f4119df3ed6555f4d1c687fb775e92925

Patch Set 1 #

Total comments: 6

Patch Set 2 : Only run tests on Mac #

Patch Set 3 : missing copyright comments #

Patch Set 4 : Fix xcodebuild #

Total comments: 2

Patch Set 5 : test cleanup #

Patch Set 6 : make work without certs #

Total comments: 8

Patch Set 7 : remove unnecessary code #

Patch Set 8 : check for .o #

Patch Set 9 : whitespace #

Patch Set 10 : Update copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -30 lines) Patch
M pylib/gyp/xcode_emulation.py View 1 2 3 4 7 chunks +26 lines, -3 lines 0 comments Download
M pylib/gyp/xcode_ninja.py View 2 chunks +9 lines, -3 lines 0 comments Download
A test/ios/xctests/App/AppDelegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
A + test/ios/xctests/App/AppDelegate.m View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
A test/ios/xctests/App/Base.lproj/LaunchScreen.xib View 1 chunk +41 lines, -0 lines 0 comments Download
A + test/ios/xctests/App/Base.lproj/Main.storyboard View 2 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
A + test/ios/xctests/App/Images.xcassets/AppIcon.appiconset/Contents.json View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
A test/ios/xctests/App/Info.plist View 1 chunk +47 lines, -0 lines 0 comments Download
A + test/ios/xctests/App/ViewController.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
A + test/ios/xctests/App/ViewController.m View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -4 lines 0 comments Download
A + test/ios/xctests/App/main.m View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
A test/ios/xctests/AppTests/AppTests.m View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A + test/ios/xctests/AppTests/Info.plist View 1 chunk +3 lines, -7 lines 0 comments Download
A test/ios/xctests/gyptest-xctests.py View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -0 lines 0 comments Download
A test/ios/xctests/xctests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (2 generated)
baxley
This is something Justin helped me put together to get XCTests working for iOS. This ...
5 years, 2 months ago (2015-10-16 20:01:50 UTC) #2
Nico
Fancy! Looks good as far as I can tell, but Justin knows iOS much better, ...
5 years, 2 months ago (2015-10-16 20:18:57 UTC) #3
baxley
Thanks for the quick review! Justin, let me know what you think. https://codereview.chromium.org/1410113002/diff/1/test/ios/xctests/gyptest-xctests.py File test/ios/xctests/gyptest-xctests.py ...
5 years, 2 months ago (2015-10-16 20:59:20 UTC) #4
justincohen
LGTM! I can't wait to rewrite all our tests into xctests =P
5 years, 2 months ago (2015-10-16 21:15:53 UTC) #5
baxley
On 2015/10/16 21:15:53, justincohen wrote: > LGTM! I can't wait to rewrite all our tests ...
5 years, 2 months ago (2015-10-16 22:27:41 UTC) #6
baxley
On 2015/10/16 22:27:41, baxley wrote: > On 2015/10/16 21:15:53, justincohen wrote: > > LGTM! I ...
5 years, 2 months ago (2015-10-17 00:10:49 UTC) #7
Nico
I was about to land this and ran the new test locally. It doesn't pass ...
5 years, 2 months ago (2015-10-17 03:06:04 UTC) #8
justincohen
Ah, baxely@ take a look at gyptest-per-config-settings.py and look at the HasCerts(): section. The bots, ...
5 years, 2 months ago (2015-10-17 03:12:39 UTC) #9
baxley
On 2015/10/17 03:12:39, justincohen wrote: > Ah, baxely@ take a look at gyptest-per-config-settings.py and look ...
5 years, 1 month ago (2015-10-27 18:38:23 UTC) #10
justincohen
https://codereview.chromium.org/1410113002/diff/60001/test/ios/xctests/gyptest-xctests.py File test/ios/xctests/gyptest-xctests.py (right): https://codereview.chromium.org/1410113002/diff/60001/test/ios/xctests/gyptest-xctests.py#newcode29 test/ios/xctests/gyptest-xctests.py:29: if test.format == 'xcode' and HasCerts(): Don't you need ...
5 years, 1 month ago (2015-10-27 19:38:49 UTC) #11
baxley
Sorry for the delay, I have a couple of questions. I'm open to making changes ...
5 years, 1 month ago (2015-11-04 22:10:41 UTC) #12
baxley
Justin, I made some changes to just have it do Debug-iphonesimulator, then if it has ...
5 years, 1 month ago (2015-11-18 16:46:17 UTC) #13
baxley
https://codereview.chromium.org/1410113002/diff/100001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/1410113002/diff/100001/pylib/gyp/xcode_emulation.py#newcode3 pylib/gyp/xcode_emulation.py:3: # found in the LICENSE file. I also got ...
5 years, 1 month ago (2015-11-18 16:46:57 UTC) #14
justincohen
https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py File test/ios/xctests/gyptest-xctests.py (right): https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py#newcode33 test/ios/xctests/gyptest-xctests.py:33: p = test.built_file_path('app_under_test.app/app_under_test') What is this for? https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py#newcode38 test/ios/xctests/gyptest-xctests.py:38: ...
5 years, 1 month ago (2015-11-19 18:37:36 UTC) #15
baxley
https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py File test/ios/xctests/gyptest-xctests.py (right): https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py#newcode33 test/ios/xctests/gyptest-xctests.py:33: p = test.built_file_path('app_under_test.app/app_under_test') On 2015/11/19 18:37:36, justincohen wrote: > ...
5 years, 1 month ago (2015-11-19 21:20:54 UTC) #16
justincohen
https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py File test/ios/xctests/gyptest-xctests.py (right): https://codereview.chromium.org/1410113002/diff/100001/test/ios/xctests/gyptest-xctests.py#newcode41 test/ios/xctests/gyptest-xctests.py:41: test.built_file_must_exist('obj/AppTests/app_tests.AppTests.x86_64.o') On 2015/11/19 21:20:54, baxley wrote: > Is there ...
5 years, 1 month ago (2015-11-20 16:14:51 UTC) #17
baxley
Should I be concerned about presubmit warnings about having a Chromium copyright, instead of Google? ...
5 years, 1 month ago (2015-11-20 21:33:47 UTC) #18
justincohen
Not sure about the presubmit question, Nico do you know? The rest LGTM
5 years, 1 month ago (2015-11-20 21:40:26 UTC) #19
baxley
On 2015/11/20 21:40:26, justincohen wrote: > Not sure about the presubmit question, Nico do you ...
5 years ago (2015-12-01 19:12:17 UTC) #20
Nico
use Chromium for new files
5 years ago (2015-12-01 19:42:45 UTC) #21
baxley
On 2015/12/01 19:42:45, Nico wrote: > use Chromium for new files I changed all the ...
5 years ago (2015-12-03 17:21:27 UTC) #22
baxley
On 2015/12/03 17:21:27, baxley wrote: > On 2015/12/01 19:42:45, Nico wrote: > > use Chromium ...
5 years ago (2015-12-07 22:43:11 UTC) #23
justincohen
Committed patchset #10 (id:180001) manually as 863d9a4f4119df3ed6555f4d1c687fb775e92925 (presubmit successful).
5 years ago (2015-12-09 00:04:57 UTC) #25
Nico
I noticed that this landed but DEPS in chromium wasn't updated after that. Please always ...
5 years ago (2015-12-14 19:56:41 UTC) #26
baxley
5 years ago (2015-12-14 20:34:19 UTC) #27
Message was sent while issue was closed.
On 2015/12/14 19:56:41, Nico wrote:
> I noticed that this landed but DEPS in chromium wasn't updated after that.
> Please always roll gyp after landing changes to it, to make sure the change
> won't break chromium. (I'll include it in the gyp roll I'm doing now.)

I sent one out for review last week after Justin landed it
https://codereview.chromium.org/1512203005/

Powered by Google App Engine
This is Rietveld 408576698