OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to sync your checkout, build a Chromium OS image, and test it all | 7 # Script to sync your checkout, build a Chromium OS image, and test it all |
8 # with one command. Can also check out a new Chromium OS checkout and | 8 # with one command. Can also check out a new Chromium OS checkout and |
9 # perform a subset of the above operations. | 9 # perform a subset of the above operations. |
10 # | 10 # |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 echo "write a USB image. Is this what you wanted?" | 173 echo "write a USB image. Is this what you wanted?" |
174 fi | 174 fi |
175 if [[ -z "${FLAGS_remote}" ]]; then | 175 if [[ -z "${FLAGS_remote}" ]]; then |
176 echo "Please specify --remote with --image_to_live" | 176 echo "Please specify --remote with --image_to_live" |
177 exit 1 | 177 exit 1 |
178 fi | 178 fi |
179 fi | 179 fi |
180 | 180 |
181 if [[ ${FLAGS_mod_image_for_test} -eq ${FLAGS_TRUE} ]]; then | 181 if [[ ${FLAGS_mod_image_for_test} -eq ${FLAGS_TRUE} ]]; then |
182 # Override any specified chronos password with the test one | 182 # Override any specified chronos password with the test one |
183 local test_file=$(dirname $0)"/mod_for_test_scripts/test_account.passwd" | 183 FLAGS_chronos_passwd="test0000" |
rochberg
2010/03/18 15:24:08
Think about warning here?
| |
184 FLAGS_chronos_passwd=$(head -1 "${test_file}") | |
185 # Default to building autotests whenever we mod image for test. | 184 # Default to building autotests whenever we mod image for test. |
186 # TODO(kmixter): Make this more efficient by either doing incremental | |
187 # building, or only building if the tests we're running needs to be. | |
188 FLAGS_build_autotest=${FLAGS_TRUE} | 185 FLAGS_build_autotest=${FLAGS_TRUE} |
189 # If you're modding for test, you also want developer packages. | 186 # If you're modding for test, you also want developer packages. |
190 FLAGS_withdev=${FLAGS_TRUE} | 187 FLAGS_withdev=${FLAGS_TRUE} |
191 fi | 188 fi |
192 | 189 |
193 if [[ -n "${FLAGS_image_to_usb}" ]]; then | 190 if [[ -n "${FLAGS_image_to_usb}" ]]; then |
194 local device=${FLAGS_image_to_usb#/dev/} | 191 local device=${FLAGS_image_to_usb#/dev/} |
195 if [[ -z "${device}" ]]; then | 192 if [[ -z "${device}" ]]; then |
196 echo "Expected --image_to_usb option of /dev/* format" | 193 echo "Expected --image_to_usb option of /dev/* format" |
197 exit 1 | 194 exit 1 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
587 fi | 584 fi |
588 | 585 |
589 trap - EXIT | 586 trap - EXIT |
590 echo "Successfully used ${FLAGS_top} to:" | 587 echo "Successfully used ${FLAGS_top} to:" |
591 describe_steps | 588 describe_steps |
592 show_duration | 589 show_duration |
593 } | 590 } |
594 | 591 |
595 | 592 |
596 main $@ | 593 main $@ |
OLD | NEW |