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. |
11 | 11 |
12 . "$(dirname $0)/common.sh" | 12 . "$(dirname $0)/common.sh" |
13 . "$(dirname $0)/remote_access.sh" | 13 . "$(dirname $0)/remote_access.sh" |
14 | 14 |
15 get_default_board | 15 get_default_board |
16 | 16 |
17 DEFINE_string args "" "Command line arguments for test, separated with comma" a | 17 DEFINE_string args "" \ |
| 18 "Command line arguments for test. Quoted and space separated if multiple." a |
18 DEFINE_string board "$DEFAULT_BOARD" \ | 19 DEFINE_string board "$DEFAULT_BOARD" \ |
19 "The board for which you are building autotest" | 20 "The board for which you are building autotest" |
20 DEFINE_string chroot "${DEFAULT_CHROOT_DIR}" "alternate chroot location" c | 21 DEFINE_string chroot "${DEFAULT_CHROOT_DIR}" "alternate chroot location" c |
21 DEFINE_boolean cleanup ${FLAGS_FALSE} "Clean up temp directory" | 22 DEFINE_boolean cleanup ${FLAGS_FALSE} "Clean up temp directory" |
22 DEFINE_integer iterations 1 "Iterations to run every top level test" i | 23 DEFINE_integer iterations 1 "Iterations to run every top level test" i |
23 DEFINE_string prepackaged_autotest "" "Use this prepackaged autotest dir" | 24 DEFINE_string prepackaged_autotest "" "Use this prepackaged autotest dir" |
24 DEFINE_string results_dir_root "" "alternate root results directory" | 25 DEFINE_string results_dir_root "" "alternate root results directory" |
25 DEFINE_boolean verbose ${FLAGS_FALSE} "Show verbose autoserv output" v | 26 DEFINE_boolean verbose ${FLAGS_FALSE} "Show verbose autoserv output" v |
26 | 27 |
27 RAN_ANY_TESTS=${FLAGS_FALSE} | 28 RAN_ANY_TESTS=${FLAGS_FALSE} |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 done | 280 done |
280 | 281 |
281 echo "" | 282 echo "" |
282 echo_color "yellow" ">>> Test results:" | 283 echo_color "yellow" ">>> Test results:" |
283 ./generate_test_report "${TMP}" --strip="${TMP}/" | 284 ./generate_test_report "${TMP}" --strip="${TMP}/" |
284 | 285 |
285 print_time_elapsed | 286 print_time_elapsed |
286 } | 287 } |
287 | 288 |
288 main "$@" | 289 main "$@" |
OLD | NEW |