Commit Graph

23028 Commits

Author SHA1 Message Date
Bill Richardson
3534a08218 Fake the GPT once for ARM to determine parameters for U-Boot script
Review URL: http://codereview.chromium.org/1520007
2010-03-30 15:52:09 -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
Ken Mixter
d99d5e3181 Add -b option to run_remote_tests to build tests before running
Review URL: http://codereview.chromium.org/1548002
2010-03-29 18:59:48 -07:00
Ken Mixter
cad6ceb186 only consider control files of control or control.* form
Review URL: http://codereview.chromium.org/1345003
2010-03-27 16:34:11 -07:00
Chris Sosa
2a696210ca Add installation of stateful partition to scripts
Review URL: http://codereview.chromium.org/1017001
2010-03-26 17:00:07 -07:00
Nathan Williams
80cd0ca349 Set up for a backchannel Ethernet interface to be used in testing network configuration and connectivity. The second device, typically a USB Ethernet adapter, will not be managed by connman or visible to the UI.
TEST=none
BUG=none

Review URL: http://codereview.chromium.org/1431003
2010-03-26 17:32:59 -04:00
Chris Masone
b7c11ac0a3 Add mock https server cert/key to testing builds
Review URL: http://codereview.chromium.org/1363003
2010-03-26 08:54:50 -07:00
Darin Petkov
b2a21e7ecf Make errors and warnings a bit more obvious.
Review URL: http://codereview.chromium.org/1342001
2010-03-25 11:33:41 -07:00
Darin Petkov
2cdc823b96 Make build_autotest failure a bit more obvious.
Review URL: http://codereview.chromium.org/1241007
2010-03-25 10:01:57 -07:00
Darin Petkov
516883ef97 Disable checks for collisions when doing build_autotest.
This fixes bad interaction between run_remote_tests.sh and build_autotest.

Review URL: http://codereview.chromium.org/1298001
2010-03-24 13:38:56 -07:00
David McMahon
73a2fb7d1c Created branch release_38. Update CHROMEOS_VERSION_BRANCH=39 2010-03-24 13:11:22 -07:00
Antoine Labour
5cc4ca136d fix autotest scripts for board variants
Review URL: http://codereview.chromium.org/1217005
2010-03-23 21:16:33 -07:00
David James
546747b982 Update enter_chroot.sh to exit with error messages when mount/unmount fails.
This is necessary for two reasons:
   1) It's nice to get an error message when mount/unmount fails
   2) set -e mode doesn't have any effect when you're in a subshell

Note that these mount/unmount failures do happen regularly in development,
so folks who depended on mount/umount failing silently will no longer be
able to rely on this and will have to kill the mounts manually.

Also fix subtle bugs in regexes for matching mount paths. (E.g. where the
regex for $HOME/chroot also matches $HOME/chroot2).

TEST=Tested mount/unmount with concurrently open shells.
     Tested mount/unmount when mount is being used by a process but the
     lock file does not reflect this.
BUG=none

Review URL: http://codereview.chromium.org/1211001
2010-03-23 15:19:43 -07:00
Darin Petkov
9cff73ea8c Look for ERROR too. Not sure if BAD actually ever shows up.
Review URL: http://codereview.chromium.org/1216001
2010-03-23 15:04:34 -07:00
robotboy
4977c869d5 Fix autotest_lib overuse of double quotes.
TEST=run build_autotest.sh --baord voguev210

Review URL: http://codereview.chromium.org/1215001
2010-03-23 14:25:46 -07:00
robotboy
69f3cbe0a2 Fix board lookup code to work from any directory.
Review URL: http://codereview.chromium.org/1203001
2010-03-23 14:01:41 -07:00
Chris Sosa
5f0751e6ed Modifies image so that devs can tell immediately whether their build is a test build
Review URL: http://codereview.chromium.org/1201001
2010-03-23 13:51:19 -07:00
robotboy
a3557f06c2 Add --jobs option to build_autotest.sh
Review URL: http://codereview.chromium.org/1194001
2010-03-23 13:42:16 -07:00
Luigi Semenzato
1f82e12eae Auxiliary function for args checks.
Review URL: http://codereview.chromium.org/1141010
2010-03-23 12:43:08 -07:00
Chris Sosa
9ef57d996b Enter chroot can return an error code on cleanup. We make cleanup best effort
Review URL: http://codereview.chromium.org/1158006
2010-03-23 11:15:45 -07:00
Ken Mixter
3c6a73ba69 Enable run_remote_tests to run in chroot and clean up output
Make this script's output better formatted.  Better describe how
to disambiguate control files when multiple match.  Get rid of
the output_file concept since it's not needed.  Don't output
a results directory if there's an ambiguity.

Review URL: http://codereview.chromium.org/1090005
2010-03-22 15:45:52 -07:00
Nick Sanders
229bdeae7e Update location of autotest files in image_to_usb, fix loopback mounting for stateful partition
Review URL: http://codereview.chromium.org/1125004
2010-03-22 14:45:52 -07:00
Eric Li
3b06f7de69 Fix bug inside recordRootFsSize.
It worked when all mod for test script works inside chroot. But not anymore since "df /" now report the host disk space, not the rootfs.

Review URL: http://codereview.chromium.org/1130005
2010-03-22 14:21:48 -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
Sean O'Connor
505822a37c adds Devserver support for statically serving versioned updates.
Also decouples it from the chroot when run in serve-only mode.

Review URL: http://codereview.chromium.org/1141001
2010-03-20 23:23:48 -07: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
Antoine Labour
643fffab67 arm: don't truncate the mbr when installing the boot script. bad things happen otherwise
Review URL: http://codereview.chromium.org/1117005
2010-03-19 18:17:11 -07:00
Ken Mixter
8142fd6b35 Add restrictions to files considered control files
Review URL: http://codereview.chromium.org/1155003
2010-03-19 18:05:46 -07:00
Darin Petkov
7c2cef2e70 Rename image_to_live and fix it so that it works with the new start_devserver.
Review URL: http://codereview.chromium.org/1083007
2010-03-19 16:45:00 -07:00
Darin Petkov
9a0a96dbbd Move the dev server script to src/scripts and remove the .sh extension.
Review URL: http://codereview.chromium.org/1153005
2010-03-19 16:24:45 -07:00
Raja Aluri
b5b94ae9a5 Adding another special directory to check_deps script
Review URL: http://codereview.chromium.org/1100004
2010-03-19 10:43:18 -07:00
Ken Mixter
8400a40350 Minor bug fixes for run_remote_tests
By default keep around result directories.
Also find control* named control files.

Review URL: http://codereview.chromium.org/1097003
2010-03-18 16:57:07 -07:00
Ken Mixter
655a669b28 Update sbt to match hardcoded logic in mod_image_for_test
Review URL: http://codereview.chromium.org/1050007
2010-03-18 16:20:06 -07:00
Aaron Kemp
8926b7d447 Add a blacklist to disable autotests that don't build
TEST=built on arm-generic, x86-generic
BUG=none

Review URL: http://codereview.chromium.org/1004003
2010-03-18 14:32:05 -07:00
bradnelson
8f0c5d92b0 Adding in script to clobber build packages that shouldn't be cached.
Merge branch 'master' of ssh://chromiumos-git//chromeos

Merge branch 'master' of ssh://chromiumos-git//chromeos

Pointing each board to its own binhost cache.

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/795002
2010-03-16 14:17:30 -07:00
Eric Li
c7867dec72 A typerr in the change password script caused lost of root password in test image.
Review URL: http://codereview.chromium.org/1021005
2010-03-16 12:54:56 -07: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
Chris Sosa
cbac648820 Fix xterm
Review URL: http://codereview.chromium.org/1026002
2010-03-15 17:52:47 -07:00
Chris Sosa
77a2963e7d TBR: Change default to false 2010-03-15 14:12:15 -07:00
Chris Sosa
4bccd3c54d Build image part of http://codereview.chromium.org/913004/show
Review URL: http://codereview.chromium.org/998002
2010-03-15 13:23:14 -07:00
Bill Richardson
c09b94fda3 Replace symlink to build_image with real file.
Review URL: http://codereview.chromium.org/921001
2010-03-15 11:40:30 -07:00
Ken Mixter
54a3e8347d Add script to package hwqual release from buildbot artifacts.
Review URL: http://codereview.chromium.org/716001
2010-03-12 14:52:51 -08:00
Chris Sosa
bf15f5fd40 Make ssh compatible with dev mode and remove testing ssh items that don't work
Review URL: http://codereview.chromium.org/912003
2010-03-12 14:06:58 -08:00
Darin Petkov
5a881e2249 Fail build_autotest.sh if any test fails to build.
This change may be controversial -- it will basically make the x86-generic
full buildbot fail if tests fail to build.

There are a few options:

1. do this and see how it goes;
2. don't do this and rely on the test failing to run;
3. do this but also change buildbot to pass --nobuildcheck to build_autotest

Review URL: http://codereview.chromium.org/848005
2010-03-12 09:55:00 -08:00
Chris Sosa
3d11629b01 Changes to enable dev in stateful partition for usb and startup
Review URL: http://codereview.chromium.org/848002
2010-03-11 15:30:38 -08:00
Antoine Labour
6a6518de1c autotest: don't wipe FEATURES when building
Review URL: http://codereview.chromium.org/866001
2010-03-11 12:01:34 -08:00
Darin Petkov
f84012077c Add a flag to fail if the tests fail to build. Off by default.
Review URL: http://codereview.chromium.org/804006
2010-03-11 10:39:00 -08:00
Andrew de los Reyes
8a8c32ec9b VMWare [1/2]: Fix vmware image generation.
Review URL: http://codereview.chromium.org/668215
2010-03-10 16:09:46 -08:00
Ken Mixter
7e41907f97 Fix minor problem with autotest permissions
When grabbing buildbot image and test artifacts, properly install the test artifacts as if they were built by the user (with the user as owner).

Review URL: http://codereview.chromium.org/703001
2010-03-08 19:37:52 -08:00
David McMahon
9bd43a1515 Update CHROMEOS_VERSION_MINOR=6 now for R6.
Review URL: http://codereview.chromium.org/669287
2010-03-08 11:06:32 -08:00