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

Issue 478163002: test/test262: update testcfg.py for new test262 (Closed)

Created:
6 years, 4 months ago by smikes
Modified:
6 years, 4 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev, Dmitry Lomov (no reviews), Michael Starzinger, Yang, arv (Not doing code reviews), Michael Achenbach
Base URL:
git@github.com:smikes/v8.git@master
Project:
v8
Visibility:
Public.

Description

test/test262: update testcfg.py for new test262 testcfg.py: - update revision and MD5 - remove non-mandatory harness files - use test parser distributed with test262 - new attribute `suite.harnesspath` - new method GetIncludesForTest - GetSourceForTest: cache source on testcase - IsNegativeTest: use parseTestRecord - use 7-char sha hash [1] - DRY setting up paths to test262 suite, harness, etc - clean up helper fns harness-adapter.js: - add $DONE function to adapter [2] 1: github tar file has 7-char sha embedded in dir name script cannot find directory to rename if they don't match exactly 2: test262 uses a `$DONE` function for async tests with semantics like those of mocha's `done`. Briefly: done(arg) => if (arg) { /* failure */ } Implemented a version of this for v8, using v8-specific api (`print`, `quit`) BUG=v8:3513 LOG=N R=jkummerow@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=23313

Patch Set 1 #

Total comments: 22

Patch Set 2 : Incorporate code review comments from Jakob #

Total comments: 8

Patch Set 3 : Use 'imp' for importing; additional cleanup #

Total comments: 1

Patch Set 4 : Remove vestige of caching test source #

Patch Set 5 : Remove vestige of source caching #

Total comments: 6

Patch Set 6 : Rebased with final (?) changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -8 lines) Patch
M test/test262/harness-adapt.js View 1 1 chunk +9 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
M test/test262/testcfg.py View 1 2 3 4 5 2 chunks +47 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Jakob Kummerow
IIUC, not all tests in this test262 revision currently pass with V8. Tests that don't ...
6 years, 4 months ago (2014-08-18 11:55:47 UTC) #1
smikes
In every case "why not <x>?" the answer is "because I am not familiar enough ...
6 years, 4 months ago (2014-08-18 15:25:42 UTC) #2
smikes
Thanks for your comments. I will upload a new patch soon. https://codereview.chromium.org/478163002/diff/1/test/test262/harness-adapt.js File test/test262/harness-adapt.js (right): ...
6 years, 4 months ago (2014-08-18 16:04:27 UTC) #3
Jakob Kummerow
I forgot to mention that you'll have to sign the CLA before we can accept ...
6 years, 4 months ago (2014-08-18 16:14:10 UTC) #4
smikes
Thanks. I e-signed the CLA. I am currently re-running the full test262 suite to make ...
6 years, 4 months ago (2014-08-18 16:31:23 UTC) #5
Jakob Kummerow
Looking pretty good now; I have a few more comments. https://codereview.chromium.org/478163002/diff/20001/test/test262/test262.status File test/test262/test262.status (right): https://codereview.chromium.org/478163002/diff/20001/test/test262/test262.status#newcode47 ...
6 years, 4 months ago (2014-08-18 17:18:40 UTC) #6
smikes
Implemented the changes you suggested. I just noticed that I didn't rename _PYTHON_PATH to _TOOLS_PATH, ...
6 years, 4 months ago (2014-08-18 19:38:01 UTC) #7
smikes
https://codereview.chromium.org/478163002/diff/40001/test/test262/testcfg.py File test/test262/testcfg.py (right): https://codereview.chromium.org/478163002/diff/40001/test/test262/testcfg.py#newcode119 test/test262/testcfg.py:119: testcase.source = f.read() this is the worse of both ...
6 years, 4 months ago (2014-08-18 20:21:54 UTC) #8
Jakob Kummerow
LGTM with some last comments. https://codereview.chromium.org/478163002/diff/80001/test/test262/testcfg.py File test/test262/testcfg.py (right): https://codereview.chromium.org/478163002/diff/80001/test/test262/testcfg.py#newcode97 test/test262/testcfg.py:97: raise Error("Cannot load parseTestRecord; ...
6 years, 4 months ago (2014-08-19 11:32:55 UTC) #9
smikes
Thanks for the comments. Also: - renamed _PYTHON_PATH to _TOOLS_PATH per earlier comment. - changed ...
6 years, 4 months ago (2014-08-19 15:22:54 UTC) #10
rossberg
Committed patchset #6 manually as 23313 (presubmit successful).
6 years, 4 months ago (2014-08-22 13:00:17 UTC) #11
rossberg
On 2014/08/22 13:00:17, rossberg wrote: > Committed patchset #6 manually as 23313 (presubmit successful). Thanks ...
6 years, 4 months ago (2014-08-22 13:13:24 UTC) #12
rossberg
6 years, 4 months ago (2014-08-22 13:17:15 UTC) #13
Message was sent while issue was closed.
On 2014/08/22 13:13:24, rossberg wrote:
> On 2014/08/22 13:00:17, rossberg wrote:
> > Committed patchset #6 manually as 23313 (presubmit successful).
> 
> Thanks a lot for doing this, I just landed the patch. However, I decided to
move
> it to a separate test/test262-es6 directory for the time being. This way, we
can
> still track ES5 conformance until ES6 actually is the official standard.
Michael
> A will set up new test262-es6 runners for our waterfall.
> 
> I also adjusted the README to mention the same revision as the cfg file.

CC'ing relevant V8 folks.

Powered by Google App Engine
This is Rietveld 408576698