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

Issue 9240011: Add temporary directory for dartc compilation of tests. (Closed)

Created:
8 years, 11 months ago by Bill Hesse
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add temporary directory for dartc compilation of tests. This subdirectory of the system temp directory is deleted after tests are run. This CL also unifies finding of the top-level dart checkout directory. BUG=dart:1167 TEST=tools/test.dart -cdartc,chromium Committed: https://code.google.com/p/dart/source/detail?r=3397

Patch Set 1 #

Patch Set 2 : Use the correct version of DeMorgan's law when rearranging if statements. #

Total comments: 11

Patch Set 3 : Address comments #

Patch Set 4 : Create temporary directory on-demand, and use it also for stub generation tests. #

Patch Set 5 : Made test for temp directory a function. #

Total comments: 1

Patch Set 6 : Changed name to createOutputDirectory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -57 lines) Patch
M frog/tests/await/test_config.dart View 1 chunk +2 lines, -8 lines 0 comments Download
M frog/tests/leg_only/test_config.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/stub-generator/test_config.dart View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M tools/test.dart View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M tools/testing/dart/test_options.dart View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 3 4 chunks +38 lines, -7 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 14 chunks +46 lines, -37 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Bill Hesse
8 years, 11 months ago (2012-01-17 17:43:06 UTC) #1
Mads Ager (chromium)
lgtm http://codereview.chromium.org/9240011/diff/3001/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): http://codereview.chromium.org/9240011/diff/3001/tools/testing/dart/test_runner.dart#newcode426 tools/testing/dart/test_runner.dart:426: [bool verbose = false, We should go back ...
8 years, 11 months ago (2012-01-18 06:57:16 UTC) #2
Mads Ager (chromium)
The 'lgtm' was pressing the wrong button. I'd like to have a quick second look.
8 years, 11 months ago (2012-01-18 06:58:33 UTC) #3
Bill Hesse
It is really difficult to decide, in ProcessQueue, whether the directory will be needed, and ...
8 years, 11 months ago (2012-01-18 11:52:38 UTC) #4
Mads Ager (chromium)
As discussed offline, it should be easy to make the creation of the global temp ...
8 years, 11 months ago (2012-01-18 12:23:14 UTC) #5
Bill Hesse
Please look at differences between #2 and #3.
8 years, 11 months ago (2012-01-18 15:03:38 UTC) #6
Mads Ager (google)
LGTM with a couple of minor comments.
8 years, 11 months ago (2012-01-18 15:19:58 UTC) #7
Mads Ager (google)
8 years, 11 months ago (2012-01-18 15:26:29 UTC) #8
You already addressed one of my comments. Here is the other one.

http://codereview.chromium.org/9240011/diff/6003/tools/testing/dart/test_suit...
File tools/testing/dart/test_suite.dart (right):

http://codereview.chromium.org/9240011/diff/6003/tools/testing/dart/test_suit...
tools/testing/dart/test_suite.dart:502: Directory
createTemporaryDirectory(String testPath,
This confused me a little. Maybe we should call this createOutputDirectory
instead? With the current name I thought that we should always call
globalTemporaryDirectory.

Powered by Google App Engine
This is Rietveld 408576698