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

Issue 987503004: Subzero: Run cross tests as a much more configurable python script. (Closed)

Created:
5 years, 9 months ago by Jim Stichnoth
Modified:
5 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Run cross tests as a much more configurable python script. The runtests.sh script is removed and replaced with crosstest_generator.py. "make check" limits to a relevant subset of cross tests to control the combinatorial explosion. We cut the native tests almost in half, and the sandboxed tests down to a quarter. The --include and --exclude logic is copied/adapted from szbuild.py. The script works by running through every possible test in the combinatorial explosion, and if the test is a match against the --include and --exclude arguments, the test is built and run. The script includes lit support, which is the most likely way it will be run. When run with the --lit argument, it sprays the output directory with lit test files in the form of shell scripts, and "make check" runs lit on that directory. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4085 R=jvoung@chromium.org, mtrofin@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=dc7c597ea93585ad9a56a06558260e4fac6d48ae

Patch Set 1 #

Patch Set 2 : Add lit support #

Patch Set 3 : Cleanup, fixes #

Patch Set 4 : More cleanup #

Patch Set 5 : Even more cleanup #

Total comments: 15

Patch Set 6 : Code review changes #

Patch Set 7 : Add import to be safe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -191 lines) Patch
M Makefile.standalone View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
A crosstest/crosstest.cfg View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
A crosstest/lit.cfg View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
D crosstest/runtests.sh View 1 chunk +0 lines, -173 lines 0 comments Download
M pydir/crosstest.py View 1 2 3 4 5 2 chunks +27 lines, -17 lines 0 comments Download
A pydir/crosstest_generator.py View 1 2 3 4 5 1 chunk +165 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Jim Stichnoth
This replaces runtests.sh with a much more flexible script. A follow-on CL will adapt this ...
5 years, 9 months ago (2015-03-06 08:19:01 UTC) #2
Jim Stichnoth
Really ready for review now. I added lit support in this version. The cross tests ...
5 years, 9 months ago (2015-03-07 00:40:12 UTC) #3
Mircea Trofin
https://codereview.chromium.org/987503004/diff/80001/crosstest/lit.cfg File crosstest/lit.cfg (right): https://codereview.chromium.org/987503004/diff/80001/crosstest/lit.cfg#newcode16 crosstest/lit.cfg:16: 'Release+Asserts/bin').format(root=FindBaseNaCl()) The path (llvm_x86_64_linux_work/Release+Asserts) means we can't run this ...
5 years, 9 months ago (2015-03-08 16:23:30 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/987503004/diff/80001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/987503004/diff/80001/Makefile.standalone#newcode232 Makefile.standalone:232: $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output just checking what -sv means (succinct ...
5 years, 9 months ago (2015-03-09 17:34:21 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/987503004/diff/80001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/987503004/diff/80001/Makefile.standalone#newcode232 Makefile.standalone:232: $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output On 2015/03/09 17:34:21, jvoung wrote: > ...
5 years, 9 months ago (2015-03-09 18:16:17 UTC) #6
jvoung (off chromium)
lgtm https://codereview.chromium.org/987503004/diff/80001/pydir/crosstest.py File pydir/crosstest.py (left): https://codereview.chromium.org/987503004/diff/80001/pydir/crosstest.py#oldcode87 pydir/crosstest.py:87: shellcmd(['../pydir/build-pnacl-ir.py', '--disable-verify', On 2015/03/09 18:16:16, stichnot wrote: > ...
5 years, 9 months ago (2015-03-09 20:34:59 UTC) #7
Jim Stichnoth
https://codereview.chromium.org/987503004/diff/80001/pydir/crosstest.py File pydir/crosstest.py (left): https://codereview.chromium.org/987503004/diff/80001/pydir/crosstest.py#oldcode87 pydir/crosstest.py:87: shellcmd(['../pydir/build-pnacl-ir.py', '--disable-verify', On 2015/03/09 20:34:59, jvoung wrote: > On ...
5 years, 9 months ago (2015-03-09 20:37:48 UTC) #8
Mircea Trofin
lgtm
5 years, 9 months ago (2015-03-10 17:12:23 UTC) #9
Jim Stichnoth
5 years, 9 months ago (2015-03-10 18:17:20 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
dc7c597ea93585ad9a56a06558260e4fac6d48ae (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698