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

Issue 2851523002: [android] Write a runner script to the top-level output dir for gtests. (Closed)

Created:
3 years, 7 months ago by jbudorick
Modified:
3 years, 7 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[android] Write a runner script to the top-level output dir for gtests. Android GN builds have been unable to build raw "unit_tests" as a target, instead relying on unit_tests_apk or chrome/test:unit_tests. Linux builds, in contrast, can do so without issue. I had thought that the issue was that a "unit_tests" gn target in another directory was preventing gn from creating a top-level alias. While this may be true, it's not the reason for the discrepancy between Android and Linux builds. Instead, the difference is that Linux builds create a unit_tests executable in the top-level output directory, while Android builds create an APK and a wrapper script in child directories. This CL writes an additional wrapper script for gtest targets on Android in the top-level directory that matches the suite's output_name (usually its target name), allowing us to successfully build raw "unit_tests" on Android. As a bonus, we can now run $ out/Release/unit_tests (etc) on Android. BUG=716117 Review-Url: https://codereview.chromium.org/2851523002 Cr-Commit-Position: refs/heads/master@{#469485} Committed: https://chromium.googlesource.com/chromium/src/+/686094f6b082e2595bc5d429cdcdaa3b76217501

Patch Set 1 #

Patch Set 2 : alphabetize #

Patch Set 3 : trivial rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -12 lines) Patch
M build/config/android/internal_rules.gni View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M testing/test.gni View 1 1 chunk +24 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
jbudorick
3 years, 7 months ago (2017-04-27 15:12:43 UTC) #4
Dirk Pranke
lgtm
3 years, 7 months ago (2017-05-04 02:11:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2851523002/40001
3 years, 7 months ago (2017-05-04 20:47:43 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 21:53:20 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/686094f6b082e2595bc5d429cdcd...

Powered by Google App Engine
This is Rietveld 408576698