Commit Graph

4103 Commits

Author SHA1 Message Date
Chris Sosa
4bffb8be6a Fix symlinks for gmergefs on stateful and keep other stateful items installed from build_image
Review URL: http://codereview.chromium.org/1561014
2010-04-07 17:23:54 -07:00
Darin Petkov
dab00363f1 Fix 'autotest' defaults -- i.e., fail when tests fail to build,
just like build_autotest. This unmasks some test build failures that
are currently happenning.

Review URL: http://codereview.chromium.org/1582017
2010-04-07 17:16:54 -07:00
Eric Li
941893f111 Enable default board in the new build_autotest script.
Review URL: http://codereview.chromium.org/1582019
2010-04-07 17:00:36 -07:00
Eric Li
f93158db51 Filter out test directory which has only control files.
Review URL: http://codereview.chromium.org/1627006
2010-04-07 15:34:01 -07:00
Jie Sun
6795867104 fix a sudo issue
Review URL: http://codereview.chromium.org/1549025
2010-04-07 14:34:04 -07:00
Eric Li
7a4c081107 remove build_autotest.sh and change run_remote_tests.sh to use new autotest script.
This change should go with

http://codereview.chromium.org/1545014

together.

Review URL: http://codereview.chromium.org/1603004
2010-04-07 12:51:05 -07:00
Bill Richardson
8b3bd10b91 Create EFI System Partition on USB image during build.
The EFI System Partition is a special disk partition where EFI BIOS expects
to find the platform-specific bootloader. We need this in order to work on
the BIOS/kernel handoff. It's not needed for the final ChromeOS image and it
isn't useful for legacy BIOS systems, so right now it only makes any difference on x86
devices with development BIOSes.

This change creates the partition for ARM builds as well; it has no effect
there, either.

Review URL: http://codereview.chromium.org/1513019
2010-04-06 15:00:10 -07:00
robotboy
e450333e3f Set the bootargs in the MBR script.
This is one less thing to change when setting up a Voguev210 and if
we need to change anything later we won't have to reconnect all of
them to debug boards.

BUG=None
TEST=Build and boot a Voguev210 image.

Review URL: http://codereview.chromium.org/1596010
2010-04-05 17:26:46 -07:00
Chris Masone
35a83f99e4 Apparently, we have to have a rootfs big enough to hold all dev and test tools too.
I need a couple extra tools for testing purposes (about 10MB).  I'd love to not add space to the rootfs for these.  But...talking to sosa, it doesn't seem there's any other way.

Review URL: http://codereview.chromium.org/1576018
2010-04-05 16:51:53 -07:00
Chris Sosa
317d8eb3fd Better handling of fuse in chroot
Review URL: http://codereview.chromium.org/1582011
2010-04-05 15:45:28 -07:00
rginda
9f90710f3b A pair of scripts to make it easier to run and debug 32 bit executables on 64 bit systems
For Example:

  # run the 32 bit binary located ad ../platform/foo/a.out
  $ run_32bit.sh ../platform/foo/a.out

  # run a.out from the current directory, and pass it the --verbose=3 command line option
  $ ../../scripts/run_32bit.sh -- a.out --verbose=3

  # debug a.out from the current directory, include ../v8 in the library search path
  $ LIB_PATHS='../v8/' ../../scripts/debug_32bit.sh a.out

run_32bit.sh runs a 32bit executable, debug_32bit.sh starts up gdb so that it's ready to
debug a 32bit target.  Both scripts work from in or out of the chroot.

If you're running from outside the chroot, you can pass a --chroot command line option to
locate the chroot, otherwise a default is computed through the normal mechanism.

Pass the 32 bit target as the parameter to either of these scripts.  If you need to provide
additional parameters to your command, then you should use -- to signify the end of *_32bit.sh
parameters.

These could be useful to people developing parts of chromeos that can be easily isolated
from the rest of the system.  If your code doesn't NEED to run on a chromeos device it
can be a bit easier to try it out on your owm machine during dev/test.

Review URL: http://codereview.chromium.org/1131002
2010-04-05 15:22:44 -07:00
Eric Li
78d6232543 Darin proposed a way to run common.sh inside a python process and now I can get rid the bash wrapper around autotest.py.
The content of autotest.py is copied into autotest and I am leaving autotest.py inside the CL for now since its much easier to review the diff.

After got LGTM, I will git rm autotest.py and only submit autotest.

Review URL: http://codereview.chromium.org/1584013
2010-04-05 14:18:32 -07:00
Chris Sosa
c7b65a46b4 TBR: Forgot quote 2010-04-02 14:17:55 -07:00
Chris Sosa
6bc771a50b TBR: Sorry fix for build again 2010-04-02 14:15:53 -07:00
Chris Sosa
7138f0a79b TBR:Fix build. Shouldn't do fuse stuff if fuse isn't installed on host 2010-04-02 14:12:05 -07:00
Chris Sosa
aa1a7fd63d Adds gmergefs. A method of remoting to a target and pushing new
packages using emerge from the host

Review URL: http://codereview.chromium.org/1515011
2010-04-02 14:06:29 -07:00
Antoine Labour
e9e585f330 Add a --to option to build_image
That way we can directly build an image onto a usb stick/sd card without a separate step.
Also, add mounting of /sys into the chroot that is needed by build_gpt on a block device.

Review URL: http://codereview.chromium.org/1521012
2010-04-01 15:57:57 -07:00
Andrew de los Reyes
cd78944051 test-fixet: Automated VMWare test of AutoUpdate
Fully automated test that uses vmplayer to test updating from
dev-channel -> image-under-test -> rollback to dev-channel.

Also, change to vmware image generation so that vmware images are
generated with two 1-GiB sized root partitions

Review URL: http://codereview.chromium.org/1512001
2010-04-01 15:24:21 -07:00
Eric Li
cad2b49f8a fix a typerr in bach_complete.
Review URL: http://codereview.chromium.org/1576011
2010-04-01 13:07:10 -07:00
Chris Sosa
6c47714d93 Only mod image for test if necessary
Review URL: http://codereview.chromium.org/1606004
2010-04-01 10:51:33 -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
Andrew de los Reyes
faefea3359 VMWare/VirtualBox: Fix (broke earlier today w/ GPT switchover)
Review URL: http://codereview.chromium.org/1535008
2010-03-31 17:18:48 -07:00
Eric Li
3d13cd1bdb New autotest wrapper script and bash complete support.
A new command line script was introduced in this CL named autotest, which is intend to replace both build_autotest.sh and run_remote_tests.sh in the future.

This change list should be reviewed with
http://codereview.chromium.org/1513006
http://codereview.chromium.org/1595001

all together.

autotest --board x86-generic --build=all will build all client tests.

autotest --board x86-generic --build=unioxbench,ltp will build enlisted client tests.

autotest --board x86-generic -c client/tests/sleeptest/control -m 12.34.56.78 ...

will invoke autoserv inside emerge-x86-generic cross-compiling env, and do a prebuild of the client test before it got pushed onto client host.

you could also:

1. bash complete the directory/file name from autotest directory after -c or -s args.
2. supply any autoserv commandline args transparently.

Note: replace build_autotest.sh/run_remotes_test.sh is only a future plan. When all the three CLs got pushed, no existing use cases should be broken.

I need to change:
1. build_packages script from third_party/chromiumos-overlay/chromeos/scripts/build_packages.
2. add "enable_server_precompile: False " to third_party/autotest/files/global_config.ini

to activate it.

Review URL: http://codereview.chromium.org/1595001
2010-03-31 11:47:22 -07:00
Bill Richardson
d59f616dac quick fix for archive_build.sh
Review URL: http://codereview.chromium.org/1542008
2010-03-30 17:48:18 -07:00
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