| 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 ${jobs_param} ${withdev_param} ${build_autotest_param} \ | 535 ${jobs_param} ${withdev_param} ${build_autotest_param} \ |
| 536 ${pkg_param} | 536 ${pkg_param} |
| 537 | 537 |
| 538 run_phase_in_chroot "Building unit tests" ./build_tests.sh ${board_param} | 538 run_phase_in_chroot "Building unit tests" ./build_tests.sh ${board_param} |
| 539 if [[ "${FLAGS_board}" == "x86-generic" ]]; then | 539 if [[ "${FLAGS_board}" == "x86-generic" ]]; then |
| 540 run_phase_in_chroot "Running unit tests" ./run_tests.sh ${board_param} | 540 run_phase_in_chroot "Running unit tests" ./run_tests.sh ${board_param} |
| 541 fi | 541 fi |
| 542 fi | 542 fi |
| 543 | 543 |
| 544 if [[ ${FLAGS_chrome_root} ]]; then | 544 if [[ ${FLAGS_chrome_root} ]]; then |
| 545 run_phase_in_chroot "Building Chromium browser" \ | 545 run_phase_in_chroot "Building Chromium browser" \ |
| 546 USE="build_tests" FEATURES="-usersandbox" \ | 546 BOARD="${FLAGS_board}" USE="build_tests" FEATURES="-usersandbox" \ |
| 547 CHROME_ORIGIN=LOCAL_SOURCE emerge-${FLAGS_board} chromeos-chrome | 547 CHROME_ORIGIN=LOCAL_SOURCE emerge-${FLAGS_board} chromeos-chrome |
| 548 fi | 548 fi |
| 549 | 549 |
| 550 if [[ ${FLAGS_master} -eq ${FLAGS_TRUE} ]]; then | 550 if [[ ${FLAGS_master} -eq ${FLAGS_TRUE} ]]; then |
| 551 chdir_relative src/scripts | 551 chdir_relative src/scripts |
| 552 if [[ -n "${FLAGS_chronos_passwd}" ]]; then | 552 if [[ -n "${FLAGS_chronos_passwd}" ]]; then |
| 553 run_phase_in_chroot "Setting default chronos password" \ | 553 run_phase_in_chroot "Setting default chronos password" \ |
| 554 ./enter_chroot.sh "echo '${FLAGS_chronos_passwd}' | \ | 554 ./enter_chroot.sh "echo '${FLAGS_chronos_passwd}' | \ |
| 555 ~/trunk/src/scripts/set_shared_user_password.sh" | 555 ~/trunk/src/scripts/set_shared_user_password.sh" |
| 556 fi | 556 fi |
| 557 run_phase_in_chroot "Mastering image" ./build_image \ | 557 run_phase_in_chroot "Mastering image" ./build_image \ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 587 fi | 587 fi |
| 588 | 588 |
| 589 trap - EXIT | 589 trap - EXIT |
| 590 echo "Successfully used ${FLAGS_top} to:" | 590 echo "Successfully used ${FLAGS_top} to:" |
| 591 describe_steps | 591 describe_steps |
| 592 show_duration | 592 show_duration |
| 593 } | 593 } |
| 594 | 594 |
| 595 | 595 |
| 596 main $@ | 596 main $@ |
| OLD | NEW |