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

Issue 4020004: crosutils: Make running tests easier for developers (Closed)

Created:
10 years, 2 months ago by kmixter1
Modified:
9 years, 7 months ago
Reviewers:
sosa
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

crosutils: Make running tests easier for developers Add "fast" mode to run_remote_tests which causes the user to no longer need to emerge autotests before running them (even ones that require compilation.) Change-Id: I60c1e8bfe562a787075b4f65b714e221e51934f7 BUG=8784 TEST=Ran bvts in and out of fast mode, ran UserCrash, SanAngeles, TPM, and backlight tests (which require compilation) in fast mode. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=f010d93

Patch Set 1 #

Patch Set 2 : Add graphics backend, a one-off required for some graphics tests. #

Patch Set 3 : remove unnec var #

Patch Set 4 : Add GCLIENT_ROOT #

Total comments: 20

Patch Set 5 : Working in and outside chroot with --args #

Patch Set 6 : Enable multiple concurrent runs, fix GCLIENT_ROOT for TPM tests #

Patch Set 7 : fix status truncation #

Patch Set 8 : Rename --fast to --build, fix nonworkon outside chroot case #

Patch Set 9 : Add use_emerged to override autodetection #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -324 lines) Patch
D autotest_workon View 1 chunk +0 lines, -229 lines 0 comments Download
M run_remote_tests.sh View 1 2 3 4 5 6 7 8 9 chunks +134 lines, -95 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
kmixter1
10 years, 2 months ago (2010-10-23 07:15:04 UTC) #1
sosa
mostly nits http://codereview.chromium.org/4020004/diff/6001/7002 File run_remote_tests.sh (right): http://codereview.chromium.org/4020004/diff/6001/7002#newcode19 run_remote_tests.sh:19: DEFINE_boolean auto_fast "${FLAGS_FALSE}" "Autodetect fast mode" Can ...
10 years, 2 months ago (2010-10-24 08:05:39 UTC) #2
kmixter1
10 years, 1 month ago (2010-10-28 22:34:19 UTC) #3
PTAL

http://codereview.chromium.org/4020004/diff/6001/7002
File run_remote_tests.sh (right):

http://codereview.chromium.org/4020004/diff/6001/7002#newcode19
run_remote_tests.sh:19: DEFINE_boolean auto_fast "${FLAGS_FALSE}" "Autodetect
fast mode"
On 2010/10/24 08:05:39, sosa wrote:
> Can you be a little more explicit here i.e. explain about workon ... you may
> also just go for ${FLAGS_TRUE} and send out an email

Removed this mode.  By default we're autodetecting fast mode which means this
has got to work for developers as there is no backdoor to revert behavior (other
than stop workon).

http://codereview.chromium.org/4020004/diff/6001/7002#newcode135
run_remote_tests.sh:135: [ ${INSIDE_CHROOT} -eq 0 ] &&
our_dir="${FLAGS_chroot}/${our_dir}"
On 2010/10/24 08:05:39, sosa wrote:
> where is our_dir being set originally?  It isn't being used anywhere else

Fixed - I hadn't tested this outside the chroot.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode140
run_remote_tests.sh:140: echo_color "yellow" ">>> Pilfering toolchain
environment from Portage."
On 2010/10/24 08:05:39, sosa wrote:
> toolchain shell environment to be more explicit.

Done.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode145
run_remote_tests.sh:145: pushd "../third_party/chromiumos-overlay/$(dirname
"${E}")" >/dev/null
On 2010/10/24 08:05:39, sosa wrote:
> Use ${SCRIPTS_DIR}../ rather than assume running from src/scripts?

Done.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode188
run_remote_tests.sh:188: local
autotest="${GCLIENT_ROOT}/src/scripts/autotest_workon"
On 2010/10/24 08:05:39, sosa wrote:
> Remove ${autotest} logic ... you're deleting the file in this CL and don't use
> it anymore

Done.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode194
run_remote_tests.sh:194: if [ ${FLAGS_fast} -eq ${FLAGS_TRUE} ]; then
On 2010/10/24 08:05:39, sosa wrote:
> Isn't this redundant? 

It was, fixed in rewrite.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode201
run_remote_tests.sh:201: autotest. Use installed instead by not passing
--auto_fast."
On 2010/10/24 08:05:39, sosa wrote:
> by passing --noauto_fast

Correct, but I removed auto_fast.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode205
run_remote_tests.sh:205: "Using autotests already installed in your sysroot.  To
build autotests \
On 2010/10/24 08:05:39, sosa wrote:
> Using stable autotests*

Done.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode320
run_remote_tests.sh:320: # autotest needs to be.
On 2010/10/24 08:05:39, sosa wrote:
> i don't understand this either :p  it looks like it might be  direct python
> variable setting

It is bash shell scripting - they're using arrays.  But it was overly complex. 
I rewrote it and tested it with some networking tests that use space delimited
args.

http://codereview.chromium.org/4020004/diff/6001/7002#newcode333
run_remote_tests.sh:333: sudo bash -c ". ./run_test"
On 2010/10/24 08:05:39, sosa wrote:
> is the first period necessary?

It was because it wasn't executable.  Rewritten.

Powered by Google App Engine
This is Rietveld 408576698