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

Issue 160351: Test infrastructure for end-to-end tests of GYP generators, and... (Closed)

Created:
11 years, 4 months ago by sgk
Modified:
9 years, 5 months ago
Reviewers:
Mark Mentovai, Greg Spencer, gyp-developer
Visibility:
Public.

Description

Test infrastructure for end-to-end tests of GYP generators, and initial tests of building a simple "Hello, world!" executable. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=562

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3025 lines, -1 line) Patch
A trunk/gyptest.py View 1 chunk +217 lines, -0 lines 0 comments Download
M trunk/pylib/gyp/generator/scons.py View 1 chunk +1 line, -1 line 0 comments Download
A trunk/test/hello/gyptest-all.py View 1 chunk +18 lines, -0 lines 0 comments Download
A trunk/test/hello/gyptest-default.py View 1 chunk +18 lines, -0 lines 0 comments Download
A trunk/test/hello/gyptest-target.py View 1 chunk +18 lines, -0 lines 0 comments Download
A trunk/test/hello/hello.c View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A trunk/test/hello/hello.gyp View 1 chunk +11 lines, -0 lines 0 comments Download
A trunk/test/hello/site_scons/site_tools/chromium_builders.py View 1 1 chunk +234 lines, -0 lines 0 comments Download
A trunk/test/lib/README.txt View 1 chunk +17 lines, -0 lines 0 comments Download
A trunk/test/lib/TestCmd.py View 1 chunk +1571 lines, -0 lines 0 comments Download
A trunk/test/lib/TestCommon.py View 1 chunk +566 lines, -0 lines 0 comments Download
A trunk/test/lib/TestGyp.py View 1 1 chunk +347 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sgk
This is for preliminary comments. The goal here is to use live tools to test ...
11 years, 4 months ago (2009-07-29 21:04:39 UTC) #1
sgk
[Re-sending separately to correctly spelled gyp-developer group name. --SK] This is for preliminary comments. The ...
11 years, 4 months ago (2009-07-30 00:08:39 UTC) #2
Greg Spencer
Cool! I just proposed adding a simple test for the variable expansions from input.py in ...
11 years, 4 months ago (2009-07-30 00:25:48 UTC) #3
Mark Mentovai
I like this approach. http://codereview.chromium.org/160351/diff/1/8 File trunk/test/hello/gyptest-all.py (right): http://codereview.chromium.org/160351/diff/1/8#newcode16 Line 16: test.run_built_executable('hello', stdout="Hello, world!\n") Oh, ...
11 years, 4 months ago (2009-07-30 16:26:50 UTC) #4
sgk
Added gyptest.py to control execution, and test/lib/README.txt. Reorganized test/lib/TestGyp.py a bit to add docstrings and ...
11 years, 4 months ago (2009-07-30 21:10:47 UTC) #5
Mark Mentovai
11 years, 4 months ago (2009-07-30 21:20:26 UTC) #6
Just addressing the C style bit here.

http://codereview.chromium.org/160351/diff/38/41
File trunk/test/hello/hello.c (right):

http://codereview.chromium.org/160351/diff/38/41#newcode4
Line 4: int
int main on one line (per style)

http://codereview.chromium.org/160351/diff/38/41#newcode7
Line 7: printf("Hello, world!\n");
C/C++ use a 2-space indent (per style)

http://codereview.chromium.org/160351/diff/38/41#newcode8
Line 8: exit(0);
Personally, I "return 0;" from main instead of calling exit.  Some compilers
actually give a hoot.  You can drop stdlib if you change this to return.

Powered by Google App Engine
This is Rietveld 408576698