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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 local pkg_param="" | 528 local pkg_param="" |
529 if [[ ${FLAGS_usepkg} -eq ${FLAGS_FALSE} ]]; then | 529 if [[ ${FLAGS_usepkg} -eq ${FLAGS_FALSE} ]]; then |
530 pkg_param="--nousepkg" | 530 pkg_param="--nousepkg" |
531 fi | 531 fi |
532 | 532 |
533 run_phase_in_chroot "Building packages" \ | 533 run_phase_in_chroot "Building packages" \ |
534 ./build_packages "${board_param}" \ | 534 ./build_packages "${board_param}" \ |
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} | |
539 if [[ "${FLAGS_board}" == "x86-generic" ]]; then | 538 if [[ "${FLAGS_board}" == "x86-generic" ]]; then |
540 run_phase_in_chroot "Running unit tests" ./run_tests.sh ${board_param} | 539 run_phase_in_chroot "Running unit tests" ./cros_run_unit_tests \ |
| 540 ${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 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 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |