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

Issue 1120883002: [Android] Generate scripts at build time to run android tests. (Closed)

Created:
5 years, 7 months ago by mikecase (-- gone --)
Modified:
5 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, feature-media-reviews_chromium.org, jam, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, maniscalco+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, pvalenzuela+watch_chromium.org, tim+watch_chromium.org, yfriedman+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Generate scripts at build time to run android tests. Making changes so that at build time scripts will be generated that can be used to easily run tests. BUG=490781 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/56d80d7a4c1ff50bf21112486cc9b2308c7e7bf0 Cr-Commit-Position: refs/heads/master@{#332518}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : Add line to output the testrunner command that is run. #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : Added GN support. #

Patch Set 8 : Generate instrumentation test scripts with gyp. #

Patch Set 9 : #

Patch Set 10 : Rebase. #

Patch Set 11 : #

Total comments: 7

Patch Set 12 : Addressed jbudorick's comments. #

Total comments: 6

Patch Set 13 : Addressed jbudorick's nits. #

Total comments: 2

Patch Set 14 : Addressed cjhopman's comments. #

Total comments: 6

Patch Set 15 : Addressed comments from thestig and ddorwin. #

Total comments: 2

Patch Set 16 : Addressed ddorwin's comments. #

Patch Set 17 : Rebase. #

Patch Set 18 : Renamed datadeps to data_deps to reflect recent change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -20 lines) Patch
M android_webview/android_webview_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M breakpad/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M breakpad/breakpad.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
A build/android/gyp/create_test_runner_script.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +92 lines, -0 lines 0 comments Download
A build/android/test_runner.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +72 lines, -0 lines 0 comments Download
M build/apk_test.gypi View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +54 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +105 lines, -0 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +8 lines, -1 line 0 comments Download
M content/shell/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -7 lines 0 comments Download
M media/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M media/midi/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M media/midi/midi.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M sql/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M sql/sql.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M sync/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M testing/test.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +17 lines, -1 line 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ui_base_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 58 (14 generated)
mikecase (-- gone --)
If you could take a quick look over this and tell me if its what ...
5 years, 7 months ago (2015-05-01 00:53:28 UTC) #2
mikecase (-- gone --)
#!/usr/bin/env python # By the way, here is an example of the (out/Debug/bin/run_base_unittests) generated when ...
5 years, 7 months ago (2015-05-01 15:45:52 UTC) #3
mikecase (-- gone --)
(Messed up formatting for previous comment.) Here is an example of the (out/Debug/bin/run_base_unittests) generated when ...
5 years, 7 months ago (2015-05-01 15:48:18 UTC) #4
jbudorick
+cjhopman: wdyt about this approach? https://codereview.chromium.org/1120883002/diff/60001/build/android/gyp/create_test_runner_script.py File build/android/gyp/create_test_runner_script.py (right): https://codereview.chromium.org/1120883002/diff/60001/build/android/gyp/create_test_runner_script.py#newcode29 build/android/gyp/create_test_runner_script.py:29: test_runner_path = ResolvePath('{test_runner_path}') All ...
5 years, 7 months ago (2015-05-01 15:59:16 UTC) #6
mckev
Just passing by - specifying the isolate file from GYP files will certainly be of ...
5 years, 7 months ago (2015-05-01 17:12:09 UTC) #8
mikecase (-- gone --)
https://codereview.chromium.org/1120883002/diff/100001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1120883002/diff/100001/base/base.gyp#newcode1558 base/base.gyp:1558: 'isolate_file': 'base_unittests.isolate', On 2015/05/01 17:12:09, mckev wrote: > Should ...
5 years, 7 months ago (2015-05-01 17:27:05 UTC) #9
cjhopman
On 2015/05/01 15:59:16, jbudorick wrote: > +cjhopman: wdyt about this approach? I think this approach ...
5 years, 7 months ago (2015-05-01 17:39:00 UTC) #10
cjhopman
Needs GN, too. https://codereview.chromium.org/1120883002/diff/60001/build/android/test_runner.gypi File build/android/test_runner.gypi (right): https://codereview.chromium.org/1120883002/diff/60001/build/android/test_runner.gypi#newcode37 build/android/test_runner.gypi:37: 'test_runner_args': ['--verbose', '--output-directory', '<(PRODUCT_DIR)'], On 2015/05/01 ...
5 years, 7 months ago (2015-05-01 17:40:11 UTC) #11
mikecase (-- gone --)
Updated CL addressing cjhopman's comments (added GN and got rid of verbose from default test ...
5 years, 7 months ago (2015-05-13 02:09:33 UTC) #12
jbudorick
My only question is about instrumentation tests + gn. https://codereview.chromium.org/1120883002/diff/200001/build/android/gyp/create_test_runner_script.py File build/android/gyp/create_test_runner_script.py (right): https://codereview.chromium.org/1120883002/diff/200001/build/android/gyp/create_test_runner_script.py#newcode16 build/android/gyp/create_test_runner_script.py:16: ...
5 years, 7 months ago (2015-05-15 13:19:57 UTC) #13
mikecase (-- gone --)
https://codereview.chromium.org/1120883002/diff/200001/build/android/gyp/create_test_runner_script.py File build/android/gyp/create_test_runner_script.py (right): https://codereview.chromium.org/1120883002/diff/200001/build/android/gyp/create_test_runner_script.py#newcode16 build/android/gyp/create_test_runner_script.py:16: script_template = """\ On 2015/05/15 13:19:56, jbudorick wrote: > ...
5 years, 7 months ago (2015-05-18 17:39:03 UTC) #14
jbudorick
https://codereview.chromium.org/1120883002/diff/200001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1120883002/diff/200001/build/config/android/rules.gni#newcode1561 build/config/android/rules.gni:1561: template("instrumentation_test_apk") { On 2015/05/18 17:39:03, mikecase wrote: > On ...
5 years, 7 months ago (2015-05-18 18:20:23 UTC) #15
mikecase (-- gone --)
https://codereview.chromium.org/1120883002/diff/220001/build/android/gyp/create_test_runner_script.py File build/android/gyp/create_test_runner_script.py (right): https://codereview.chromium.org/1120883002/diff/220001/build/android/gyp/create_test_runner_script.py#newcode54 build/android/gyp/create_test_runner_script.py:54: 'the action\'s first output.') On 2015/05/18 18:20:23, jbudorick wrote: ...
5 years, 7 months ago (2015-05-18 18:43:46 UTC) #16
cjhopman
lgtm https://codereview.chromium.org/1120883002/diff/240001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1120883002/diff/240001/build/config/android/internal_rules.gni#newcode1283 build/config/android/internal_rules.gni:1283: test_name = invoker.test_apk I feel like this should ...
5 years, 7 months ago (2015-05-20 03:09:27 UTC) #17
jbudorick
On 2015/05/20 03:09:27, cjhopman wrote: > lgtm > > https://codereview.chromium.org/1120883002/diff/240001/build/config/android/internal_rules.gni > File build/config/android/internal_rules.gni (right): > ...
5 years, 7 months ago (2015-05-20 03:10:17 UTC) #18
mikecase (-- gone --)
Needed to change some BUILD.gn files in this CL (mostly to add isolate_files to some ...
5 years, 7 months ago (2015-05-20 21:22:03 UTC) #20
Ted C
On 2015/05/20 21:22:03, mikecase wrote: > Needed to change some BUILD.gn files in this CL ...
5 years, 7 months ago (2015-05-20 21:27:19 UTC) #21
cjhopman
lgtm
5 years, 7 months ago (2015-05-20 21:30:45 UTC) #22
Lei Zhang
https://codereview.chromium.org/1120883002/diff/260001/breakpad/BUILD.gn File breakpad/BUILD.gn (right): https://codereview.chromium.org/1120883002/diff/260001/breakpad/BUILD.gn#newcode621 breakpad/BUILD.gn:621: isolate_file = "breakpad_unittests.isolate" Should there be a corresponding change ...
5 years, 7 months ago (2015-05-20 21:33:11 UTC) #23
stanisc
sync lgtm
5 years, 7 months ago (2015-05-21 01:21:59 UTC) #24
ddorwin
https://codereview.chromium.org/1120883002/diff/260001/media/BUILD.gn File media/BUILD.gn (right): https://codereview.chromium.org/1120883002/diff/260001/media/BUILD.gn#newcode568 media/BUILD.gn:568: isolate_file = "media_unittests.isolate" This applies to all platforms unlike ...
5 years, 7 months ago (2015-05-21 02:55:49 UTC) #25
cbentzel
I'll take a look at the net/ change, but one meta-question: Is there any chance ...
5 years, 7 months ago (2015-05-21 16:35:59 UTC) #26
mikecase (-- gone --)
Added a bug containing some details/motivation for creating these generated scripts. https://code.google.com/p/chromium/issues/detail?id=490781 https://codereview.chromium.org/1120883002/diff/260001/breakpad/BUILD.gn File breakpad/BUILD.gn ...
5 years, 7 months ago (2015-05-21 18:46:46 UTC) #27
Lei Zhang
base/ and breakpad/ lgtm
5 years, 7 months ago (2015-05-21 19:42:33 UTC) #28
cbentzel
net/ LGTM Thanks for adding the bug!
5 years, 7 months ago (2015-05-21 19:55:14 UTC) #29
cbentzel
net/ LGTM Thanks for adding the bug!
5 years, 7 months ago (2015-05-21 19:55:16 UTC) #30
ddorwin
media/ LGTM with question https://codereview.chromium.org/1120883002/diff/280001/media/midi/BUILD.gn File media/midi/BUILD.gn (right): https://codereview.chromium.org/1120883002/diff/280001/media/midi/BUILD.gn#newcode159 media/midi/BUILD.gn:159: isolate_file = "midi_unittests.isolate" Do you ...
5 years, 7 months ago (2015-05-21 20:21:36 UTC) #31
mikecase (-- gone --)
https://codereview.chromium.org/1120883002/diff/280001/media/midi/BUILD.gn File media/midi/BUILD.gn (right): https://codereview.chromium.org/1120883002/diff/280001/media/midi/BUILD.gn#newcode159 media/midi/BUILD.gn:159: isolate_file = "midi_unittests.isolate" On 2015/05/21 at 20:21:36, ddorwin wrote: ...
5 years, 7 months ago (2015-05-22 17:17:11 UTC) #32
ddorwin
lgtm
5 years, 7 months ago (2015-05-22 18:17:41 UTC) #33
jbudorick
build/android/ lgtm
5 years, 6 months ago (2015-05-28 04:12:23 UTC) #34
mikecase (-- gone --)
Just waiting on reviews from... enne@ for cc/BUILD.gn sky@ for ui/base/BUILD.gn gbillock@ for sql/BUILD.gn I ...
5 years, 6 months ago (2015-06-01 17:18:59 UTC) #36
enne (OOO)
cc lgtm
5 years, 6 months ago (2015-06-01 17:24:21 UTC) #37
sky
LGTM
5 years, 6 months ago (2015-06-01 18:03:42 UTC) #38
mikecase (-- gone --)
Looks like gbillock@ no longer works on Chrome, so erikwright could you look at sql/BUILD.gn ...
5 years, 6 months ago (2015-06-01 19:35:30 UTC) #40
erikwright (departed)
I don't really understand how isolate files work, but if someone who does has looked ...
5 years, 6 months ago (2015-06-02 18:26:39 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120883002/320001
5 years, 6 months ago (2015-06-02 20:17:05 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/67678)
5 years, 6 months ago (2015-06-02 20:33:40 UTC) #46
mikecase (-- gone --)
Adding boliu@chromium.org to review android_webview/android_webview_tests.gypi.
5 years, 6 months ago (2015-06-02 22:45:44 UTC) #48
boliu
On 2015/06/02 22:45:44, mikecase wrote: > Adding mailto:boliu@chromium.org to review android_webview/android_webview_tests.gypi. rs lgtm
5 years, 6 months ago (2015-06-02 22:52:27 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120883002/340001
5 years, 6 months ago (2015-06-02 22:54:27 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/13181)
5 years, 6 months ago (2015-06-02 23:35:33 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120883002/340001
5 years, 6 months ago (2015-06-03 00:03:50 UTC) #56
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 6 months ago (2015-06-03 00:57:35 UTC) #57
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 00:58:21 UTC) #58
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/56d80d7a4c1ff50bf21112486cc9b2308c7e7bf0
Cr-Commit-Position: refs/heads/master@{#332518}

Powered by Google App Engine
This is Rietveld 408576698