Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: tests/rbtest.conf

Issue 2857030: Exhaustive test for rollback code (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Fix write count handling and improve comments. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/Makefile ('k') | tests/rollback_index_test.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # Rollback code exhaustive test.
6 #
7 # INSTRUCTIONS. Put this file in /etc/init. Move /etc/init/tcsd.conf to
8 # /etc/init/tcsd.confxxx to disable it. Then boot with the device connected by
9 # wired ethernet. The test will start and reboot the host after every cycle.
10 # Unplug the ethernet cable to stop testing. If left alone, the test will stop
11 # at the first failure or when all the states have been tested.
12 #
13 # Reminder: rollback_index_test only works with TPM-agnostic firmware.
14
15 # Connecting to tcsd requires that "localhost" be reachable, so we wait for
16 # flimflam to start, but that's not enough, and in the while loop below we also
17 # wait for pinging to localhost to succeed.
18
19 start on started flimflam
20
21 script
22 cable=""
23 while [ "$cable" != "yes" ]; do
24 cable=$(/usr/sbin/ethtool eth0 | grep Link | cut -f 3 -d ' ')
25 logger "rbtest: cable is $cable"
26 ping -c 1 localhost || cable=""
27 sleep 2
28 done
29 # ideally we would like to issue a "stop tcsd", but this doesn't work
30 # (upstart race?) so we must manually disable tcsd.conf
31 ### stop tcsd
32 logger "starting rbtest"
33 /usr/bin/rollback_index_test > /tmp/rbtest.out 2>&1
34 end script
OLDNEW
« no previous file with comments | « tests/Makefile ('k') | tests/rollback_index_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698