Commit Graph

10 Commits

Author SHA1 Message Date
Chris Sosa
fd2cdec118 Remove testing utilities and fix symlinks.
For run_remote_tests this required "fixing" restart_in_chroot if required.  Right now that script ->only<- works if its run on a scripts being called from src/scripts.  This change makes it more generic by doing this for any script called from within our source tree.

I borrow reinterpret_path_for_chroot from image_to_live.  Other CL to remove it from there.

Change-Id: If717beccd777ac178366d58b91521b9a62d55d85

BUG=chromium-os:11172
TEST=Ran them

Review URL: http://codereview.chromium.org/6730012
2011-03-24 16:06:59 -07:00
Greg Spencer
798d75f3be This starts to fix the scripts so that they load from /usr/lib/crosutils
from within the chroot.

It also fixes a number of style issues.

It changes the meaning of cros_workon "list-all" to list all available
packages, and adds "list-live" to list all live packages.

It changes things that load chromeos-common.sh from the installer to
load it from /usr/lib/installer.

BUG=chromium-os:4230
TEST=synced, rebuilt chroot, made packages, made images, built chrome
from source, and wrote an image to a USB stick.

Review URL: http://codereview.chromium.org/6240018

Change-Id: I90c34420af1a64020402bafef8e9e77f56837c02
2011-02-01 22:04:49 -08:00
Chris Sosa
4c5396d872 Respect debug flag setting when building unit tests.
Change-Id: Id942eefeea4bfb51b076d8d567c398557a522937

BUG=7976
TEST=Ran with both options

Review URL: http://codereview.chromium.org/6312073
2011-02-01 14:17:19 -08:00
Chris Sosa
98e73f154e Ignore packages that cannot be found for the target.
Change-Id: I1b08fe7fe292605543579af0df358cb2fcbf0b97

BUG=
TEST=Ran it with dev-utils/crosutils

Review URL: http://codereview.chromium.org/5281001
2010-11-22 14:36:41 -08:00
Chris Sosa
e4836188a8 Add ability for cbuildbot to only run unit tests for revved packages.
Change-Id: I6744aac09fb075f91f710f16343fab45b8dc8af9

BUG=chromium-os:7283
TEST=Ran it with cbuildbot through the unit tests phase and looked
at the file and saw it get parsed correctly.

Review URL: http://codereview.chromium.org/5124006
2010-11-22 13:44:51 -08:00
Ken Mixter
9b8fd4e671 crosutils: make cros_run_unit_tests prepare before building tests
Change-Id: I105c8e37b1241e89efda2c7cef35840bdc32e108

BUG=7754
TEST=Ran cros_run_unit_tests and verify patch (during prepare step) was done

Review URL: http://codereview.chromium.org/3801003
2010-10-14 13:23:44 -07:00
Ken Mixter
e8b8033880 Allow src_test to require running src_configure step first
TEST=ran the script on all tests successfully

Change-Id: I992b9ed2ce99fc30aa542bf6c953d04ffe1d62d0

Review URL: http://codereview.chromium.org/3248003
2010-08-27 14:37:10 -07:00
Ken Mixter
26b6408e5b Support non-default board use case
Review URL: http://codereview.chromium.org/2955002
2010-07-08 17:28:38 -07:00
Chris Sosa
b4529fa675 Adding blacklist support for unit tests and blacklisting currently failing tests.
TEST=Ran cros_run_unit_tests with no arguments and it returned 0.

Review URL: http://codereview.chromium.org/2818021
2010-06-22 17:19:15 -07:00
Chris Sosa
d97985240a Check in to run unittests that uses src_test to build and run unittests.
TEST=Ran unittests with 2 test failures (powerd and update engine).
Will check with authors to fix these before moving the default over
to this.

Review URL: http://codereview.chromium.org/2837004
2010-06-16 14:29:50 -07:00