| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 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 run client or server tests on a live remote image. | 7 # Script to run client or server tests on a live remote image. |
| 8 | 8 |
| 9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
| 10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 fi | 25 fi |
| 26 done | 26 done |
| 27 } | 27 } |
| 28 | 28 |
| 29 find_common_sh | 29 find_common_sh |
| 30 . "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1) | 30 . "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1) |
| 31 # --- END COMMON.SH BOILERPLATE --- | 31 # --- END COMMON.SH BOILERPLATE --- |
| 32 | 32 |
| 33 . "${SCRIPT_ROOT}/remote_access.sh" || die "Unable to load remote_access.sh" | 33 . "${SCRIPT_ROOT}/remote_access.sh" || die "Unable to load remote_access.sh" |
| 34 | 34 |
| 35 get_default_board | |
| 36 | |
| 37 DEFINE_string args "" \ | 35 DEFINE_string args "" \ |
| 38 "Command line arguments for test. Quoted and space separated if multiple." a | 36 "Command line arguments for test. Quoted and space separated if multiple." a |
| 39 DEFINE_string board "$DEFAULT_BOARD" \ | 37 DEFINE_string board "" \ |
| 40 "The board for which you are building autotest" | 38 "The board for which you are building autotest" |
| 41 DEFINE_boolean build ${FLAGS_FALSE} "Build tests while running" b | 39 DEFINE_boolean build ${FLAGS_FALSE} "Build tests while running" b |
| 42 DEFINE_string chroot "${DEFAULT_CHROOT_DIR}" "alternate chroot location" c | 40 DEFINE_string chroot "${DEFAULT_CHROOT_DIR}" "alternate chroot location" c |
| 43 DEFINE_boolean cleanup ${FLAGS_FALSE} "Clean up temp directory" | 41 DEFINE_boolean cleanup ${FLAGS_FALSE} "Clean up temp directory" |
| 44 DEFINE_integer iterations 1 "Iterations to run every top level test" i | 42 DEFINE_integer iterations 1 "Iterations to run every top level test" i |
| 45 DEFINE_string results_dir_root "" "alternate root results directory" | 43 DEFINE_string results_dir_root "" "alternate root results directory" |
| 46 DEFINE_boolean verbose ${FLAGS_FALSE} "Show verbose autoserv output" v | 44 DEFINE_boolean verbose ${FLAGS_FALSE} "Show verbose autoserv output" v |
| 47 DEFINE_boolean use_emerged ${FLAGS_FALSE} \ | 45 DEFINE_boolean use_emerged ${FLAGS_FALSE} \ |
| 48 "Force use of emerged autotest packages" | 46 "Force use of emerged autotest packages" |
| 49 | 47 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 331 |
| 334 echo "" | 332 echo "" |
| 335 info "Test results:" | 333 info "Test results:" |
| 336 ./generate_test_report "${TMP}" --strip="${TMP}/" | 334 ./generate_test_report "${TMP}" --strip="${TMP}/" |
| 337 | 335 |
| 338 print_time_elapsed | 336 print_time_elapsed |
| 339 } | 337 } |
| 340 | 338 |
| 341 restart_in_chroot_if_needed "$@" | 339 restart_in_chroot_if_needed "$@" |
| 342 main "$@" | 340 main "$@" |
| OLD | NEW |