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

Issue 1154313003: Non-SFI mode: Implement test launcher for nacl_helper_nonsfi_unittests (Closed)

Created:
5 years, 6 months ago by hidehiko
Modified:
5 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Non-SFI mode: Implement test launcher for nacl_helper_nonsfi_unittests. This CL implements a test launcher customized for nacl_helper_nonsfi_unittests. - Existing nacl_helper_nonsfi_unittests is renamed to nacl_helper_nonsfi_unittests_main. - The new test launcher is built with a toolchain for the target architecture rather than PNaCl toolchain. - XmlUnitTestResultPrinter is now extracted into a separate file. TEST=Ran bots (with and without editing testing/buildbots scripts). Run locally. BUG=358465 Committed: https://crrev.com/8fc7c823b9dd2b7890c96438f347383aa713c1d6 Cr-Commit-Position: refs/heads/master@{#333430}

Patch Set 1 #

Patch Set 2 : Small clean up for code review. #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : Rebase #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Rebase #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : Rebase #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -201 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M base/base_nacl.gyp View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M base/files/file_util.cc View 1 2 3 6 chunks +6 lines, -0 lines 0 comments Download
M base/files/file_util_posix.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M base/test/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A + base/test/gtest_xml_unittest_result_printer.h View 1 2 3 2 chunks +5 lines, -14 lines 0 comments Download
A base/test/gtest_xml_unittest_result_printer.cc View 1 2 3 1 chunk +77 lines, -0 lines 0 comments Download
M base/test/gtest_xml_util.h View 1 2 3 1 chunk +0 lines, -24 lines 0 comments Download
M base/test/gtest_xml_util.cc View 1 2 3 1 chunk +1 line, -62 lines 0 comments Download
A base/test/launcher/test_launcher_nacl_nonsfi.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
A + base/test/launcher/test_launcher_nacl_nonsfi.cc View 1 2 3 4 5 6 4 chunks +49 lines, -76 lines 0 comments Download
A base/test/launcher/unit_test_launcher_nacl_nonsfi.cc View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M build/all.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A components/nacl/loader/nonsfi/nacl_helper_nonsfi_unittests.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
A + components/nacl/loader/nonsfi/run_all_unittests.cc View 1 2 3 4 5 6 1 chunk +10 lines, -8 lines 0 comments Download
M components/nacl_helper_nonsfi_unittests.isolate View 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl_nonsfi.gyp View 1 2 3 8 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
hidehiko
Could you take a look? phajdan@, base/test/... thakis@, build/all.gyp mseaborn@, components/nacl Thanks, - hidehiko
5 years, 6 months ago (2015-05-28 16:15:53 UTC) #2
Paweł Hajdan Jr.
https://codereview.chromium.org/1154313003/diff/20001/base/test/launcher/test_launcher.h File base/test/launcher/test_launcher.h (right): https://codereview.chromium.org/1154313003/diff/20001/base/test/launcher/test_launcher.h#newcode120 base/test/launcher/test_launcher.h:120: void set_use_child_gtest_output(bool value) { This looks like a layering ...
5 years, 6 months ago (2015-05-29 13:48:20 UTC) #3
hidehiko
Thank you for review. https://codereview.chromium.org/1154313003/diff/20001/base/test/launcher/test_launcher.h File base/test/launcher/test_launcher.h (right): https://codereview.chromium.org/1154313003/diff/20001/base/test/launcher/test_launcher.h#newcode120 base/test/launcher/test_launcher.h:120: void set_use_child_gtest_output(bool value) { On ...
5 years, 6 months ago (2015-05-29 14:00:47 UTC) #4
Paweł Hajdan Jr.
https://codereview.chromium.org/1154313003/diff/20001/base/test/launcher/test_launcher.h File base/test/launcher/test_launcher.h (right): https://codereview.chromium.org/1154313003/diff/20001/base/test/launcher/test_launcher.h#newcode120 base/test/launcher/test_launcher.h:120: void set_use_child_gtest_output(bool value) { On 2015/05/29 14:00:47, hidehiko wrote: ...
5 years, 6 months ago (2015-06-01 10:56:59 UTC) #5
hidehiko
Thank you for review. PTAL. Pawel, I have tried to address your comments, so as ...
5 years, 6 months ago (2015-06-02 08:12:17 UTC) #7
Paweł Hajdan Jr.
Nice work! I think you can now remove "Unlike other test launcher, the new test ...
5 years, 6 months ago (2015-06-02 10:37:36 UTC) #8
hidehiko
Thank you for review. PTAL. Note: failing tests looks unrelated to me. https://codereview.chromium.org/1154313003/diff/80001/base/test/launcher/test_launcher_nacl_nonsfi.cc File base/test/launcher/test_launcher_nacl_nonsfi.cc ...
5 years, 6 months ago (2015-06-02 14:55:21 UTC) #9
Paweł Hajdan Jr.
https://codereview.chromium.org/1154313003/diff/80001/components/nacl/loader/nonsfi/run_all_unittests.cc File components/nacl/loader/nonsfi/run_all_unittests.cc (right): https://codereview.chromium.org/1154313003/diff/80001/components/nacl/loader/nonsfi/run_all_unittests.cc#newcode13 components/nacl/loader/nonsfi/run_all_unittests.cc:13: argc, argv, base::Bind(&RUN_ALL_TESTS)); On 2015/06/02 14:55:20, hidehiko wrote: > ...
5 years, 6 months ago (2015-06-02 15:41:38 UTC) #10
hidehiko
Thank you for comment. PTAL. https://codereview.chromium.org/1154313003/diff/80001/components/nacl/loader/nonsfi/run_all_unittests.cc File components/nacl/loader/nonsfi/run_all_unittests.cc (right): https://codereview.chromium.org/1154313003/diff/80001/components/nacl/loader/nonsfi/run_all_unittests.cc#newcode13 components/nacl/loader/nonsfi/run_all_unittests.cc:13: argc, argv, base::Bind(&RUN_ALL_TESTS)); On ...
5 years, 6 months ago (2015-06-02 18:34:01 UTC) #11
Paweł Hajdan Jr.
LGTM
5 years, 6 months ago (2015-06-03 14:46:39 UTC) #12
hidehiko
On 2015/06/03 14:46:39, Paweł Hajdan Jr. wrote: > LGTM Thank you for review, Pawel. Nico, ...
5 years, 6 months ago (2015-06-03 17:11:19 UTC) #13
hidehiko
On 2015/06/03 17:11:19, hidehiko wrote: > On 2015/06/03 14:46:39, Paweł Hajdan Jr. wrote: > > ...
5 years, 6 months ago (2015-06-04 14:47:32 UTC) #14
Nico
build/all.gyp lgtm https://codereview.chromium.org/1154313003/diff/140001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1154313003/diff/140001/base/base.gyp#newcode1063 base/base.gyp:1063: ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test==1', { nit: ...
5 years, 6 months ago (2015-06-04 18:13:41 UTC) #15
hidehiko
Thank you for review. PTAL for base/..., Nico. Mark, ping? - hidehiko https://codereview.chromium.org/1154313003/diff/140001/base/base.gyp File base/base.gyp ...
5 years, 6 months ago (2015-06-04 19:38:09 UTC) #16
Mark Seaborn
LGTM. Mostly a rubber-stamp because I'm not familiar with the gtest plumbing, and I assume ...
5 years, 6 months ago (2015-06-04 21:43:56 UTC) #17
hidehiko
Thank you for review, Mark. Nico, friendly ping for base/... ? Thanks, - hidehiko https://codereview.chromium.org/1154313003/diff/180001/base/test/gtest_xml_unittest_result_printer.h ...
5 years, 6 months ago (2015-06-08 17:14:39 UTC) #18
Nico
base lgtm too. sorry, i missed that you wanted me to look at that as ...
5 years, 6 months ago (2015-06-08 17:16:45 UTC) #19
hidehiko
Thank you for review, again, Nico. Submitting.
5 years, 6 months ago (2015-06-09 01:24:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1154313003/220001
5 years, 6 months ago (2015-06-09 01:27:17 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 6 months ago (2015-06-09 02:51:05 UTC) #24
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 02:52:15 UTC) #25
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8fc7c823b9dd2b7890c96438f347383aa713c1d6
Cr-Commit-Position: refs/heads/master@{#333430}

Powered by Google App Engine
This is Rietveld 408576698