Commit Graph

40 Commits

Author SHA1 Message Date
Greg Spencer
c24465670d This fixes a build break in mod_image_for_test.sh
BUG=chromium-os:4230
TEST=Ran mod_image_for_test.sh locally.

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

Change-Id: If6ae676fb41b366760b0c753677172090a9a4943
2011-02-01 22:44:41 -08: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
Nick Sanders
a436eb8ef6 Add per board customization, clean up private autotests.
BUG=1583
TEST=actually builds

Change-Id: I6510f30faf3f3c2e88b4ea9c63985c09086e1a5d

Review URL: http://codereview.chromium.org/4482001
(cherry picked from commit afba119639afe0fb8206e58ead091f2efd114192)

Allow branch customization for factory

BUG=1583
TEST=removes superfluous files

Change-Id: I576fc0dd811f9c1ed6299a539e0e8a014b37bdc8

Review URL: http://codereview.chromium.org/4376001
(cherry picked from commit 08fdc9da26456c286254c250366bdfc738f8ed38)

No pagecycler for factory image

BUG=1583
TEST="build, no pagecycler in factory."

Change-Id: I43d23de5d518634697e17a32bcd94a43aad46aba

Review URL: http://codereview.chromium.org/4342002
(cherry picked from commit f3e98785f3ed3f4e87e4287ee3ec45e2fc737c89)

Review URL: http://codereview.chromium.org/5091002
2010-11-17 16:50:02 -08:00
Nikita Kostylev
0ae1505d89 Disable OEM partition mounting for test images.
BUG=chromium-os:3828
TEST=Boot with test image. Check that OEM partiotion is not mounted at /mnt/partner_partition

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

Change-Id: Ib7c15010df7d7f30e49149c42034b26a13d69573
2010-09-13 18:58:31 +04:00
Zdenek Behan
a8216d3334 mod_image_for_test: drop the quietness from rsync to see what's being copied
Change-Id: I3405d1b7a15e2715c012074870b9941f7e225035

Review URL: http://codereview.chromium.org/3228006
2010-08-27 20:37:15 -07:00
Paul Stewart
072ea6f30e Remove .svn files from the client directory to save space
Copying the .ssh directories within client takes up O(2n) space in
the stateful partition

BUG=none
TEST=reran mod_image_for_test.sh

Review URL: http://codereview.chromium.org/2832079
2010-08-07 17:38:35 -07:00
Will Drewry
7ab698d713 build_image, mod_image_for_*: break out make_image_bootable
Breaks make_image_bootable out of build_image into a separate
script.  In addition, it make a helper .sh in the OUTPUT_DIR
to let make_image_bootable be re-run on an image with the same
arguments that were passed in via build_image.

This change also removes the use of the boot/ directory in
OUTPUT_DIR.

TEST=build_image verified; image_to_usb --test_image; booted l13
           build_image; image_to_vm; qemu booted
           build_image verified; image_to_usb; booted l13
BUG=chromium-os:5081

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

Change-Id: I627d678089aa71c353347f387ad5b14063fd4e7b
2010-08-05 13:57:52 -05:00
David James
0366864a98 Enable fast build by default in build_image and mod_image_for_test.sh.
The fast build is stable enough now that we can enable it for everybody.
I ran the build constantly all weekend on two machines and I only ran into
one (rare) error, which I've fixed in a separate patch.

See <http://codereview.chromium.org/2856048/show>

TEST=Ran lots and lots of fast builds
BUG=none

Review URL: http://codereview.chromium.org/3059001
2010-07-28 17:08:29 -07:00
Zelidrag Hornung
e93c60e9a9 Removed chrome ui tests and its dependencies from the factory test image
BUG=4828
TEST=make sure factory image actually builds while chrome ui autotests are included in the build

Review URL: http://codereview.chromium.org/3010035
2010-07-27 16:06:20 -07:00
Justin Neddo
6b5b16b8fe Generate fake root certs for autotest via qemu
mod_image_for_test.sh now passes the target architecture to the subscripts
mod_for_test_scripts/710enableAuthTesting generates the /etc/fake_root_cert
databases by running nsscertutil under QEMU.

BUG=3310
TEST=Built autotest enabled images for x86 and arm.  On arm, the browser no
longer crashes trying to read the fake root certs.

Review URL: http://codereview.chromium.org/2878033
2010-07-22 10:17:03 -05:00
David James
b44b04d0f9 Update mod_image_for_test to support --fast option.
Added --fast option. Updated the one place that wasn't using sudo when calling
emerge to use sudo like the others. This is safe because we're merging with
--usepkgonly.

TEST=Ran mod_image_for_test.sh with and without the --fast options
BUG=none

Review URL: http://codereview.chromium.org/2834055
2010-07-20 00:36:32 -07:00
Tom Wai-Hong Tam
ab3682d570 If qualified components not specified, use the one based on board name.
Review URL: http://codereview.chromium.org/2965013
2010-07-19 00:22:42 +08:00
Nick Sanders
1e53c94ac9 remove autotests in case they come back
Review URL: http://codereview.chromium.org/2819039
2010-07-07 12:42:17 -07:00
Nick Sanders
13adf4efc5 TBR: reviewed in http://codereview.chromium.org/2807012/show 2010-06-22 16:45:59 -07:00
Nick Sanders
d250927093 Add Build Timer
Review URL: http://codereview.chromium.org/2859005
2010-06-16 03:50:04 -07:00
Nick Sanders
8ab729ab98 Prototype faster build (kind of ugly)
Review URL: http://codereview.chromium.org/2724014
2010-06-16 03:15:17 -07:00
Chris Sosa
d02af025b2 Enables saving of chromium mini/core dumps
BUG=3283
TEST=Tested by running mod_image_for_test and checking the stateful partiton
on the resulting image and verifying that these files exist in the correct
locations.

Review URL: http://codereview.chromium.org/2107013
2010-06-02 12:30:04 -07:00
Nick Sanders
7c982f7398 Update factory installer, factory test
* Fix build breaks
* Update to work with EFI bios

Review URL: http://codereview.chromium.org/2132008
2010-05-19 22:17:08 -07:00
Girts Folkmanis
00f72a3cb2 Do not emerge chromeos-test in factory_install.
Otherwise we overflow the 180MB partition when running ./image_to_usb.sh --factory_install.

Review URL: http://codereview.chromium.org/2108010
2010-05-17 22:10:02 -07:00
Chris Sosa
702618ff2b Move to using chromeos-test to emerge test dependencies in mod_image_for_test.
In addition unifies changes in mount_gpt_image and one-offs in mod_image_for_test
to consolidate gpt / var mounting.

Review URL: http://codereview.chromium.org/2064001
2010-05-14 12:52:32 -07:00
Nick Sanders
7789d34e97 Allow factory install shim to be overlay installed
Make standalone package for factory install, so it can be overlayed on top of an existing image.
Modify mod_image_for_test to do the overlay.

Review URL: http://codereview.chromium.org/1945004
2010-05-05 21:21:15 -07:00
Chris Sosa
f4f6ad47b3 Revert http://codereview.chromium.org/1818001 so that archived build can produce test images
Review URL: http://codereview.chromium.org/1812008
2010-04-30 15:48:52 -07:00
Chris Sosa
c5e880f7db Force mod_image_for_test to run inside chroot if outside
Review URL: http://codereview.chromium.org/1818001
2010-04-29 16:19:05 -07:00
Tom Wai-Hong Tam
bf772cffaa Skip dropping caches in each test and between iterations during factory tests.
Dropping caches (writing back all dirty pages to disk and clearing all the caches) is not necessary for factory tests. It can reduce the latency significantly. The scale is about 27s -> 3s, for running 2 empty tests.

Review URL: http://codereview.chromium.org/1780011
2010-04-29 14:57:37 +08:00
Tom Wai-Hong Tam
d036780bd1 Make modify-image-for-factory scripts more readable.
Review URL: http://codereview.chromium.org/1755012
2010-04-28 18:50:02 +08:00
Nick Sanders
3c8023380e Allow boot directly into mfg test.
Add feature to mod_image_for_test to patch rootfs.
Change initctl path to get network but no chrome.
./image_to_usb.sh --install_mfg --install_autotest --test_image
which calls ./mod_image_for_test.sh --manuf

Review URL: http://codereview.chromium.org/1542011
2010-04-16 19:53:55 -07:00
Ken Mixter
ce175d58d6 Make mod_image_for_test work with default args. Before the GPT change, by default mod_image_for_test would modify the result of your build.
Review URL: http://codereview.chromium.org/1572012
2010-04-01 10:08:11 -07:00
Bill Richardson
6dcea16492 Clean up temporary files and directories, add utilities.
Remove the temporary rootfs.image file and others that are left by build_image and related scripts. Also added tool to emit scripts that can pack and unpack the combined disk image.

Review URL: http://codereview.chromium.org/1567013
2010-03-31 19:20:24 -07:00
Bill Richardson
4364a2e679 Switch to GPT-format disk images.
This changes the disk image for both USB keys and hard-drive installs to use
the EFI GUID Partition Tables. This is a prequisite for booting with an EFI
BIOS. This change does not use the EFI Boot protocol; it still boots using
Legacy BIOS. The PMBR contains syslinux' gptmbr.bin, which searches the GPT
for a specified partition's GUID to boot.

I've tested it on my EeePC. The USB image works, chromeos-install works, and
the reimaged hard drive works. I have not yet tested the memento_updater.sh
script, but I wanted to start the review without waiting until it's all perfect.
I will also be refactoring build_gpt.sh and chromeos-install to share common
logic.

It's almost certain that all existing dogfood machines will need to be
reimaged from a USB key. We could probably figure out a way to upgrade
automatically, but not quickly or without risk.

In addition to the GPT formatting, the build_image script has changed to
emit a single usb.bin file. This can be copied directly onto a USB key and
booted. Installation of dev tools needs to happen with build_image, not
image_to_usb. I have not yet looked at the other image_to_* scripts.

Review URL: http://codereview.chromium.org/1100001
2010-03-30 14:17:34 -07:00
Tom Wai-Hong Tam
f01627b64c Fix the path of results due to the test name change
Review URL: http://codereview.chromium.org/1147005
2010-03-22 18:24:52 +08:00
Tom Wai-Hong Tam
caee8f891c Modify image for mfg test, e.g. copying qualified component file to the image.
Review URL: http://codereview.chromium.org/1081002
2010-03-20 09:45:02 +08:00
Eric Li
df5bf95764 Change mod_for_test_script to make it work with arm os image.
Get rid of chroot inside this script, and not mounting mod_for_test_scripts into rootfs any more.

The reason caused the failure here is once you chroot into the mounted rootfs directory, all binaries were searched inside the rootfs. But all binaries inside the arm rootfs was for arm hardware, so not executable on the host linux machine(intel).

Review URL: http://codereview.chromium.org/845007
2010-03-15 20:35:59 -07:00
Ken Mixter
89ae722a21 Fix problem with mod_image_for_test leaving dangling chroot ref
Review URL: http://codereview.chromium.org/661061
2010-02-24 19:15:14 -08:00
Ken Mixter
cc48864bce Support renamed commands, remove non-portage build support, fix a minor mod_image_for_test bug. Tested with build_autotest, mift, image_to_usb, and image_to_live. Also not recreating the chroot unless it's missing or you pass --force_make_chroot as folks say that added dependencies in the chroot are handled currently during build_packages.
Review URL: http://codereview.chromium.org/650123
2010-02-24 15:27:30 -08:00
Chris Sosa
acada7387b Changes to use default board when set by setup_board
Review URL: http://codereview.chromium.org/656023
2010-02-23 15:20:03 -08:00
Sam Leffler
9b14b47550 minor fixups to make this functional
- add --board option to find images
- prompt before clobbering image unless --yes option specified (a la image_to_usb)

Review URL: http://codereview.chromium.org/650181
2010-02-22 15:22:11 -08:00
Eric Li
55d1c59a58 Since now those packages are build with autotest pre build.
This CL should be submitted after 531001.

Review URL: http://codereview.chromium.org/537009
2010-01-11 10:47:54 -08:00
kmixter@google.com
1528403974 By default use the most recently built image when modifying an image for test.
Review URL: http://codereview.chromium.org/462043

git-svn-id: svn://chrome-svn/chromeos/trunk@344 06c00378-0e64-4dae-be16-12b19f9950a1
2009-12-07 23:11:44 +00:00
kwaters@google.com
5db44aa611 Add fio based autotest cases.
- Rev chromeos-systemtests, and add fio as a dependency.
- Add fio into the image during mod_image_for_test.sh

Review URL: http://chromereview.prom.corp.google.com/1180028

git-svn-id: svn://chrome-svn/chromeos/trunk@297 06c00378-0e64-4dae-be16-12b19f9950a1
2009-11-19 22:31:21 +00:00
ericli@google.com
66c440d687 Add scripts to modify a rootfs.image for testability.
Review URL: http://chromereview.prom.corp.google.com/1177024

git-svn-id: svn://chrome-svn/chromeos/trunk@91 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-26 21:40:12 +00:00