Commit Graph

45 Commits

Author SHA1 Message Date
Antoine Labour
3866923b00 Revert "This change removes the autotest mount-specific change from the mod_for_test scripts as we no longer need executable /tmp or /home for autotest."
This reverts commit 4092ff5651.

TBR=fes

Change-Id: I9baa8836fce86963af97a618d75aeb90325fbc42
2011-01-12 14:36:51 -08:00
Frank Swiderski
4092ff5651 This change removes the autotest mount-specific change from the mod_for_test scripts as we no longer need executable /tmp or /home for autotest.
Change-Id: I03c563b11d5df043683e904c7794faa34748b063

BUG=chromium-os:7286
TEST=bvt autotest

Review URL: http://codereview.chromium.org/6080007
2011-01-12 13:50:48 -08:00
Dale Curtis
86213e6795 Fix path for upcoming Autotest relocation.
Additional change for the relocation of Autotest from /home/autotest to /usr/local/autotest. See http://codereview.chromium.org/6090004/

Change-Id: Id6f7ac6e93124414b0b6c6bed48efccfd982a49d

BUG=chromium-os:10799
TEST=Will test as whole with rest of /usr/local changes.

Review URL: http://codereview.chromium.org/5972012
2011-01-10 11:50:01 -08:00
Chris Masone
8038b8f9ab [crosutils] Remove test-image-specific change of core_pattern
We were snaking core dumps out from under the crash reporter on test images, and no one was even using them.  We'd like to leverage the crash reporter to detect that crashes happened during a test run, so disable this.

BUG=7936
TEST=spin up a VM, send SEGV to chrome.  crash_reporter messages should appear in /var/log/messages

Change-Id: Icc2be55616ac931ca3ec1a7810ea3e09a006a26b

Review URL: http://codereview.chromium.org/4019006
2010-10-22 12:28:51 -07:00
Frank Swiderski
3a8f8eda47 This uncomments a remount line in chromeos_startup that mounts /home as exec, allowing autotest to run.
Change-Id: I51df060627770d88c219501bc628e91229ac0d42

BUG=7286
TEST=Boot in mod_for_test, home is mounted exec

Review URL: http://codereview.chromium.org/3529021
2010-10-08 15:41:14 -07:00
Sameer Nanda
f7cf2ca225 Moved disable_idle_suspend to rootfs from stateful partition for test images.
BUG=chromium-os:6204
TEST=Ran mod_image_for_test.sh, mounted resulting image and verfied
     disable_idle_suspend now shows up under /usr/share/power_manager
     instead of /var/lib/power_manager

Change-Id: Ia34787b364cd5ffa199efc4a36b5d9d691a33c5a

Review URL: http://codereview.chromium.org/3326011
2010-09-07 09:34:12 -07:00
vbendeb
68fd512d31 Include saft.conf in the list of scripts modified for test.
This change must accompany http://codereview.chromium.org/3330005/show

Change-Id: If57a726933e4a243e424bdc98ddd577081afe6e2

BUG=chromium-os:6345
TEST=manual
built an image, ran mod_image_for_test on it, then
split the image into partition blobs, mounted part_3 and
checked /etc/init/{openssh-server,iptables,saft}.conf
- they all have the #for_test string removed.
removed.

Review URL: http://codereview.chromium.org/3309006
2010-09-03 18:30:47 -07:00
Chris Masone
b8f2ace10f pam_google is no longer in the image, so we must create /etc/login_trust_root.pem from scratch
pam_google used to install /etc/login_trust_root.pem, and then this script would
modify it.  We no longer install pam_google, so we need to create this file
de-novo now.

BUG=None
TEST=build_image, then mod for test.  Check that /etc/login_trust_root.pem exists, contains one cert, and has the right permissions.  For maximum goodness, run login_LoginSuccess

Change-Id: I409ffeea4b30905cf9e0506650b67556fa5ec80e

Review URL: http://codereview.chromium.org/3185024
2010-08-24 22:01:39 -07:00
Chris Masone
626ced822c Fake authserver SSL certs now valid for 21 days, instead of 2
BUG=5130
TEST=create a test image, boot it on a device, and run "sudo nsscertutil -d "sql:/etc/fake_root_ca/nssdb" -L -n FakeCert | less".  Look at the section of the output marked "Validity:" and make sure the Not Before and Not After sections indicate dates that are 3 weeks apart

Change-Id: I67cf7e71027147f83c1bc916557bc06ef66fa0e0

Review URL: http://codereview.chromium.org/3075025
2010-08-09 14:41:17 -07:00
Olof Johansson
e07324f53c don't use qemu on x86 for mod_image_for_test
BUG=none
TEST=run mod_image_for_test on x86. Watch it fail. D'oh.

Review URL: http://codereview.chromium.org/3048017
2010-07-22 22:38:36 -05: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
Benson Leung
70dc38b4c8 Create a symlink for the external_extensions.json.
power_LoadTest will use this symlink to load a test extension at login.

BUG=None
TEST=power_LoadTest

Signed-off-by: Benson Leung <bleung@chromium.org>

Review URL: http://codereview.chromium.org/2877007
2010-07-01 10:55:45 -07:00
Nathan Williams
9494671269 Fix up the modification of the flimflam upstart script
to handle changed command line arguments, and attempt
to make it resilient in the face of future changes.

TEST=Run script on fresh image; confirm that '-I eth_test' is present on the exec line of /etc/init/flimflam.conf

Review URL: http://codereview.chromium.org/2842023
2010-06-24 10:15:34 -04:00
Paul Stewart
ed903f64fd s/connman/flimflam/ to match other changes throughout the tree.
Review URL: http://codereview.chromium.org/2731001
2010-06-08 09:49:11 -07:00
David James
c373e2457a Teach mod_image_for_test to disable idle-suspend features.
This prevents the machine from suspending while it is being tested.

TEST=Modified an image for test and verified that powerd did not suspend.
BUG=chromium-os:3694

Review URL: http://codereview.chromium.org/2620008
2010-06-07 14:54:18 -07:00
Nick Sanders
fc9d6961ce patch upstart for test
Review URL: http://codereview.chromium.org/2675005
2010-06-04 20:19:18 -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
Ken Mixter
ab9bdec984 Fix rootfs size writing
BUG=3125

Review URL: http://codereview.chromium.org/2016005
2010-05-07 11:31:52 -07:00
Chris Masone
5543339140 Generate testing SSL cert on the fly; install into nssdb correctly
Review URL: http://codereview.chromium.org/1750022
2010-05-03 08:32:06 -07:00
Nathan Williams
219bbebef2 Adjust backchannel network setup to require explicit enabling
on the device under test and to use a not-normally-generated interface name, so that use of add-on ethernet devices is not affected in normal operation.

BUG=2962, 2941

(dup of 1810013, git goofiness)

Review URL: http://codereview.chromium.org/1826003
2010-04-30 19:24:02 -04:00
Chris Masone
86e28fd1d9 Generate testing certs on the fly
Review URL: http://codereview.chromium.org/1701016
2010-04-27 11:06:12 -07:00
Chris Masone
127c3bfa2b Add testing root certs to an nssdb on the rootfs.
After discussing with drewry, we can't come up with a better way to inject these root certs.  We considered putting them on the stateful partition, but that opens up an avenue of attack (if you can get a root cert into the magic directory, then you can MITM login).  Thus, we put it on the rootfs instead.  The script that sets up the hashes for vboot will verify that this directory is not present in production images.  That work is tracked here: http://code.google.com/p/chromium-os/issues/detail?id=2693

Review URL: http://codereview.chromium.org/1566055
2010-04-19 14:26:14 -07:00
Chris Sosa
3ccf7410ea Add local dir's to path. SSH and SU respect paths in etc environment
Review URL: http://codereview.chromium.org/1650001
2010-04-12 16:00:17 -07:00
Chris Masone
b9f7230dcd Fix permissions on fake root cert that is injected for login testing. It was getting 0600
Review URL: http://codereview.chromium.org/1626007
2010-04-08 16:05:32 -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
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
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
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
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
Chris Sosa
6b8f1cf53e Modify scripts to be more informative and add autox/autologin for build script
Review URL: http://codereview.chromium.org/661203
2010-02-26 14:33:52 -08: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
Sean O'Connor
a6db82ed3e Cleanup and merge autotest wrappers.
Review URL: http://codereview.chromium.org/546137
2010-01-27 12:11:08 -08:00
Chris Sosa
73de2358c0 Adds script to mod image for test to enable new login manager on test images
Review URL: http://codereview.chromium.org/555039
2010-01-22 13:33:25 -08:00
Ken Mixter
de780c41c3 Record the production rootfs size for tracking with autotest
Review URL: http://codereview.chromium.org/536057
2010-01-14 15:29:22 -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
Tom Wai-Hong Tam
759ded1293 Build in patch in Chromium OS test image.
Compilebench in Autotest needs patch.

Review URL: http://codereview.chromium.org/500096
2009-12-18 10:01:01 +08:00
Sean O'Connor
1b2e9a4bca remove trailing whitespace in mod_for_test script (grr, rietveld.)
Review URL: http://codereview.chromium.org/492010
2009-12-10 14:05:20 -08:00
Sean O'Connor
c72b190ad8 create standard ssh keys for root in test-modified images
Review URL: http://codereview.chromium.org/487002
2009-12-10 13:14:59 -08: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
6f2c33649e remove a script which has no x bit and add a new one.
The previous CL r137 did not make the trick.

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

git-svn-id: svn://chrome-svn/chromeos/trunk@138 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-30 20:06:45 +00:00
ericli@google.com
bf39181430 Change the x bit for the shell script.
Review URL: http://chromereview.prom.corp.google.com/1180025

git-svn-id: svn://chrome-svn/chromeos/trunk@137 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-30 16:32:31 +00:00
rspangler@google.com
abc0121daf Remove accidentally checked in files.
git-svn-id: svn://chrome-svn/chromeos/trunk@110 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-28 22:10:10 +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