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

Issue 10826182: Validator_ragel: move checkdecoder test from Makefile to scons (Closed)

Created:
8 years, 4 months ago by Vlad Shcherbina
Modified:
8 years, 4 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Validator_ragel: move checkdecoder test from Makefile to scons Checkdecoder is a test that takes few hours and compares DFA-based decoder with objdump output on a number of enumerated instructions. This test is not included into any test suite and is only run manually ./scons dfacheckdecoder It makes sense to only run it when changes to DFA are made (that is, after ./scons dfagen). Since dfagen is currently linux only, dfacheckdecoder is somewhat platform-dependent as well. Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=9435

Patch Set 1 #

Total comments: 12

Patch Set 2 : reaction to remarks #

Total comments: 21

Patch Set 3 : reaction to Nick's remarks #

Patch Set 4 : following Mark's suggestion, obtain binutils from gerrit repo instead of deps/third-party #

Total comments: 2

Patch Set 5 : remove comment about unneeded patch #

Total comments: 18

Patch Set 6 : next round of minor changes #

Total comments: 4

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -86 lines) Patch
M src/trusted/validator_ragel/build.scons View 1 2 3 4 5 6 6 chunks +176 lines, -86 lines 0 comments Download
A src/trusted/validator_ragel/obtain_binutils.py View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/decoder_test_one_file.sh View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Vlad Shcherbina
Obviously it does not work without binutils in third-party (which I will hopefully add to ...
8 years, 4 months ago (2012-08-07 08:46:09 UTC) #1
khim
Few nits, o/w LGTM, but please wait for the review of some python expert https://chromiumcodereview.appspot.com/10826182/diff/1/src/trusted/validator_ragel/build.scons ...
8 years, 4 months ago (2012-08-07 09:24:22 UTC) #2
Vlad Shcherbina
https://chromiumcodereview.appspot.com/10826182/diff/1/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/10826182/diff/1/src/trusted/validator_ragel/build.scons#newcode230 src/trusted/validator_ragel/build.scons:230: {'32': '', '64': '-m amd64'}[bits]) On 2012/08/07 09:24:22, khim ...
8 years, 4 months ago (2012-08-07 11:01:57 UTC) #3
Nick Bray
https://chromiumcodereview.appspot.com/10826182/diff/3/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/10826182/diff/3/src/trusted/validator_ragel/build.scons#newcode33 src/trusted/validator_ragel/build.scons:33: Single empty line. The only exception is two lines ...
8 years, 4 months ago (2012-08-07 18:36:13 UTC) #4
Vlad Shcherbina
https://chromiumcodereview.appspot.com/10826182/diff/3/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/10826182/diff/3/src/trusted/validator_ragel/build.scons#newcode33 src/trusted/validator_ragel/build.scons:33: On 2012/08/07 18:36:14, Nick Bray wrote: > Single empty ...
8 years, 4 months ago (2012-08-08 08:19:29 UTC) #5
Vlad Shcherbina
8 years, 4 months ago (2012-08-08 12:09:16 UTC) #6
khim
One nit o/w LGTM if Nick is happy with this
8 years, 4 months ago (2012-08-08 13:40:17 UTC) #7
khim
https://chromiumcodereview.appspot.com/10826182/diff/4010/src/trusted/validator_ragel/obtain_binutils.py File src/trusted/validator_ragel/obtain_binutils.py (right): https://chromiumcodereview.appspot.com/10826182/diff/4010/src/trusted/validator_ragel/obtain_binutils.py#newcode24 src/trusted/validator_ragel/obtain_binutils.py:24: # Add lfence/mfence/sfence - non-canonical encodings. After lond discussion ...
8 years, 4 months ago (2012-08-08 13:40:24 UTC) #8
Vlad Shcherbina
https://chromiumcodereview.appspot.com/10826182/diff/4010/src/trusted/validator_ragel/obtain_binutils.py File src/trusted/validator_ragel/obtain_binutils.py (right): https://chromiumcodereview.appspot.com/10826182/diff/4010/src/trusted/validator_ragel/obtain_binutils.py#newcode24 src/trusted/validator_ragel/obtain_binutils.py:24: # Add lfence/mfence/sfence - non-canonical encodings. On 2012/08/08 13:40:24, ...
8 years, 4 months ago (2012-08-08 13:46:52 UTC) #9
Nick Bray
https://chromiumcodereview.appspot.com/10826182/diff/3/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/10826182/diff/3/src/trusted/validator_ragel/build.scons#newcode257 src/trusted/validator_ragel/build.scons:257: gas =File("#/../third_party/binutils/as.linux") FYI ${SCONSTRUCT_DIR} is fixed relative to (the ...
8 years, 4 months ago (2012-08-08 18:24:44 UTC) #10
Vlad Shcherbina
Nick, please take another look. Although I have provisional LGTМ from Victor, could you please ...
8 years, 4 months ago (2012-08-09 10:07:35 UTC) #11
Nick Bray
LGTM w/ two non-binding suggestions. https://chromiumcodereview.appspot.com/10826182/diff/12006/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/10826182/diff/12006/src/trusted/validator_ragel/build.scons#newcode235 src/trusted/validator_ragel/build.scons:235: ' '.join('${SOURCES[%d]}' % (i ...
8 years, 4 months ago (2012-08-09 20:16:20 UTC) #12
Vlad Shcherbina
8 years, 4 months ago (2012-08-10 15:17:39 UTC) #13
https://chromiumcodereview.appspot.com/10826182/diff/12006/src/trusted/valida...
File src/trusted/validator_ragel/build.scons (right):

https://chromiumcodereview.appspot.com/10826182/diff/12006/src/trusted/valida...
src/trusted/validator_ragel/build.scons:235: ' '.join('${SOURCES[%d]}' % (i + 1)
On 2012/08/09 20:16:20, Nick Bray wrote:
> Line breaking a generator expression makes it hard to read.  I'd lift this
into
> its own statement (outside the loop, even)?

Since this construction relies on the fact that SOURCES are of the form
[gen_dfa] + INST_DEFS, I don't want to move it away from it.

https://chromiumcodereview.appspot.com/10826182/diff/12006/src/trusted/valida...
src/trusted/validator_ragel/build.scons:255: action='python ${SOURCES[0]}
<"${SOURCES[1]}" >"${TARGET}"'
On 2012/08/09 20:16:20, Nick Bray wrote:
> Not critical for this CL, but I'd delegate the logic of reading and writing
> files to the script rather than using stdin/stdout redirection.

I'll make it in a separate small CL.

Powered by Google App Engine
This is Rietveld 408576698