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

Issue 2946063002: Python script to compile and link the integration tests using llvm's clang-cl (Closed)

Created:
3 years, 6 months ago by njanevsk
Modified:
3 years, 5 months ago
CC:
syzygy-changes_googlegroups.com, chrisha
Target Ref:
refs/heads/master
Project:
syzygy
Visibility:
Public.

Description

Python script to compile and link the integration tests using llvm's clang-cl BUG= Review-Url: https://codereview.chromium.org/2946063002 Committed: https://github.com/google/syzygy/commit/d98b9eeb23efbbfa81fcca245c7ef68d0ec5028c

Patch Set 1 #

Total comments: 21

Patch Set 2 : Merge branch 'syzygy_asan_rtl' into compilation_script #

Patch Set 3 : Modification made based on Seb's reviews #

Total comments: 24

Patch Set 4 : Response to reviewer comments. #

Patch Set 5 : Response to reviewer comments. #

Total comments: 36

Patch Set 6 : Remove gyp file from banch #

Patch Set 7 : Response to reviews #

Total comments: 6

Patch Set 8 : Added -m32 flag to the compialtion method and changed the extenstion of the object files from .o to… #

Patch Set 9 : Merge branch 'compilation_script' into gyp_file #

Patch Set 10 : Remove the files needed for the gyp file. #

Patch Set 11 : Fixed indentation #

Patch Set 12 : Response to last set of comments #

Patch Set 13 : Remove the integration_tests.gyp from this CL. #

Total comments: 9

Patch Set 14 : Response to reviewer's comments. #

Patch Set 15 : Python script to compile and link the integration tests using llvm's clang-cl #

Total comments: 6

Patch Set 16 : Python script to compile and link the integration tests using llvm's clang-cl #

Total comments: 12

Patch Set 17 : Python script to compile and link the integration tests using llvm's clang-cl #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -0 lines) Patch
A syzygy/integration_tests/make_integration_tests_clang.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +147 lines, -0 lines 3 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 39 (13 generated)
njanevsk
This is the script that compiles and links the integration_tests using clang-cl. It depends on ...
3 years, 6 months ago (2017-06-20 19:04:24 UTC) #3
Sébastien Marchand
Yes, there's a way to make it dependent on the other CL, please do it: ...
3 years, 6 months ago (2017-06-21 14:58:50 UTC) #4
Sébastien Marchand
https://codereview.chromium.org/2946063002/diff/1/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/1/syzygy/integration_tests/make_integration_tests_clang.py#newcode15 syzygy/integration_tests/make_integration_tests_clang.py:15: parser.add_option('--src-dir', You don't need this, you can automatically find ...
3 years, 6 months ago (2017-06-21 15:32:50 UTC) #5
njanevsk
PTAL https://codereview.chromium.org/2946063002/diff/1/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/1/syzygy/integration_tests/make_integration_tests_clang.py#newcode15 syzygy/integration_tests/make_integration_tests_clang.py:15: parser.add_option('--src-dir', On 2017/06/21 15:32:49, Sébastien Marchand wrote: > ...
3 years, 6 months ago (2017-06-21 19:26:50 UTC) #6
Sébastien Marchand
https://codereview.chromium.org/2946063002/diff/1/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/1/syzygy/integration_tests/make_integration_tests_clang.py#newcode15 syzygy/integration_tests/make_integration_tests_clang.py:15: parser.add_option('--src-dir', On 2017/06/21 19:26:49, njanevsk wrote: > On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 19:51:37 UTC) #7
njanevsk
PTAL! Somehow I added the integration_tests.gyp file to this cl. I couldn't figure out how ...
3 years, 6 months ago (2017-06-22 18:43:49 UTC) #8
Sébastien Marchand
You can easily split this in 2 CLs: - Switch to your branch for the ...
3 years, 6 months ago (2017-06-22 19:18:06 UTC) #9
njanevsk
Thanks for the command. It worked like a charm. PTAL.
3 years, 6 months ago (2017-06-22 19:32:20 UTC) #10
Sébastien Marchand
Another handful of comments :) https://codereview.chromium.org/2946063002/diff/40001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/40001/syzygy/integration_tests/make_integration_tests_clang.py#newcode24 syzygy/integration_tests/make_integration_tests_clang.py:24: '-I' + src_dir On ...
3 years, 6 months ago (2017-06-22 19:34:17 UTC) #11
Sébastien Marchand
https://codereview.chromium.org/2946063002/diff/80001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/80001/syzygy/integration_tests/make_integration_tests_clang.py#newcode4 syzygy/integration_tests/make_integration_tests_clang.py:4: # found in the LICENSE file. Add a comment ...
3 years, 6 months ago (2017-06-22 19:44:48 UTC) #12
njanevsk
PTAL https://codereview.chromium.org/2946063002/diff/80001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/80001/syzygy/integration_tests/make_integration_tests_clang.py#newcode4 syzygy/integration_tests/make_integration_tests_clang.py:4: # found in the LICENSE file. On 2017/06/22 ...
3 years, 6 months ago (2017-06-22 21:16:33 UTC) #13
Sébastien Marchand
Almost there! https://codereview.chromium.org/2946063002/diff/80001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/80001/syzygy/integration_tests/make_integration_tests_clang.py#newcode67 syzygy/integration_tests/make_integration_tests_clang.py:67: (build_dir, On 2017/06/22 21:16:33, njanevsk wrote: > ...
3 years, 6 months ago (2017-06-23 18:01:54 UTC) #14
njanevsk
Thanks for your helping me understand splitting branches in git. PTAL!
3 years, 5 months ago (2017-07-06 15:17:29 UTC) #16
njanevsk
Thanks for your helping me understand splitting branches in git. PTAL!
3 years, 5 months ago (2017-07-06 15:17:31 UTC) #17
Sébastien Marchand
Almost there! https://codereview.chromium.org/2946063002/diff/260001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/260001/syzygy/integration_tests/make_integration_tests_clang.py#newcode20 syzygy/integration_tests/make_integration_tests_clang.py:20: "third_party", "llvm-build", "Release+Asserts", "bin", "clang-cl.exe") Use ' ...
3 years, 5 months ago (2017-07-06 15:41:35 UTC) #18
njanevsk
The dry run passed. PTAL!
3 years, 5 months ago (2017-07-06 19:24:54 UTC) #26
njanevsk
The dry run passed. PTAL!
3 years, 5 months ago (2017-07-06 19:24:57 UTC) #27
Sébastien Marchand
Looking pretty good. Chris, do you want to take a quick look at this? https://codereview.chromium.org/2946063002/diff/300001/syzygy/integration_tests/make_integration_tests_clang.py ...
3 years, 5 months ago (2017-07-06 19:29:57 UTC) #28
njanevsk
PTAL https://codereview.chromium.org/2946063002/diff/300001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/300001/syzygy/integration_tests/make_integration_tests_clang.py#newcode57 syzygy/integration_tests/make_integration_tests_clang.py:57: compile_command = compile_command_base On 2017/07/06 19:29:57, Sébastien Marchand ...
3 years, 5 months ago (2017-07-06 19:42:16 UTC) #29
Sébastien Marchand
A few more minor nits, looking good otherwise. https://codereview.chromium.org/2946063002/diff/320001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/320001/syzygy/integration_tests/make_integration_tests_clang.py#newcode21 syzygy/integration_tests/make_integration_tests_clang.py:21: Add ...
3 years, 5 months ago (2017-07-06 20:28:58 UTC) #30
njanevsk
PTAL https://codereview.chromium.org/2946063002/diff/320001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/320001/syzygy/integration_tests/make_integration_tests_clang.py#newcode21 syzygy/integration_tests/make_integration_tests_clang.py:21: On 2017/07/06 20:28:58, Sébastien Marchand wrote: > Add ...
3 years, 5 months ago (2017-07-06 20:36:42 UTC) #31
Sébastien Marchand
LGTM!
3 years, 5 months ago (2017-07-07 14:36:58 UTC) #32
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/2946063002/340001
3 years, 5 months ago (2017-07-07 14:41:13 UTC) #34
commit-bot: I haz the power
Committed patchset #17 (id:340001) as https://github.com/google/syzygy/commit/d98b9eeb23efbbfa81fcca245c7ef68d0ec5028c
3 years, 5 months ago (2017-07-07 15:34:51 UTC) #37
etienneb
some nits https://codereview.chromium.org/2946063002/diff/340001/syzygy/integration_tests/make_integration_tests_clang.py File syzygy/integration_tests/make_integration_tests_clang.py (right): https://codereview.chromium.org/2946063002/diff/340001/syzygy/integration_tests/make_integration_tests_clang.py#newcode86 syzygy/integration_tests/make_integration_tests_clang.py:86: build_dir + '\export_dll.dll.lib', nit: please use 'os.path.join' ...
3 years, 5 months ago (2017-07-10 14:55:40 UTC) #38
njanevsk
3 years, 5 months ago (2017-07-10 15:56:44 UTC) #39
Message was sent while issue was closed.
On 2017/07/10 14:55:40, etienneb wrote:
> some nits
> 
>
https://codereview.chromium.org/2946063002/diff/340001/syzygy/integration_tes...
> File syzygy/integration_tests/make_integration_tests_clang.py (right):
> 
>
https://codereview.chromium.org/2946063002/diff/340001/syzygy/integration_tes...
> syzygy/integration_tests/make_integration_tests_clang.py:86: build_dir +
> '\export_dll.dll.lib',
> nit: please use 'os.path.join'
> 
>
https://codereview.chromium.org/2946063002/diff/340001/syzygy/integration_tes...
> syzygy/integration_tests/make_integration_tests_clang.py:87: build_dir +
> '\syzyasan_rtl.dll.lib',
> nit: please use 'os.path.join'
> 
>
https://codereview.chromium.org/2946063002/diff/340001/syzygy/integration_tes...
> syzygy/integration_tests/make_integration_tests_clang.py:119: return
> os.path.join(output_dir, 'obj',
> os.path.split and [0] is complicated to read.
> You can use dirname and basename
> 
> see:
> 
> >>> import os
> >>> os.path.split("c:\\src\\dummy")
> ('c:\\src', 'dummy')
> >>> os.path.split("c:\\src\\dummy\\test.dll")
> ('c:\\src\\dummy', 'test.dll')
> >>> os.path.split("c:\\src\\dummy")
> ('c:\\src', 'dummy')
> >>> os.path.basename("c:\\src\\dummy\\test.dll")
> 'test.dll'

Thanks for the feedback. I addressed it here:
https://codereview.chromium.org/2977433002/

Powered by Google App Engine
This is Rietveld 408576698