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 # This script makes autotest client tests inside a chroot environment. The idea | 7 # This script makes autotest client tests inside a chroot environment. The idea |
8 # is to compile any platform-dependent autotest client tests in the build | 8 # is to compile any platform-dependent autotest client tests in the build |
9 # environment, since client systems under test lack the proper toolchain. | 9 # environment, since client systems under test lack the proper toolchain. |
10 # | 10 # |
(...skipping 16 matching lines...) Expand all Loading... |
27 FLAGS_HELP="usage: $0 [flags]" | 27 FLAGS_HELP="usage: $0 [flags]" |
28 | 28 |
29 # parse the command-line | 29 # parse the command-line |
30 FLAGS "$@" || exit 1 | 30 FLAGS "$@" || exit 1 |
31 eval set -- "${FLAGS_ARGV}" | 31 eval set -- "${FLAGS_ARGV}" |
32 set -e | 32 set -e |
33 | 33 |
34 check_board | 34 check_board |
35 | 35 |
36 # build default pre-compile client tests list. | 36 # build default pre-compile client tests list. |
37 ALL_TESTS="compilebench,dbench,disktest,ltp,unixbench" | 37 ALL_TESTS="compilebench,dbench,disktest,ltp,netperf2,netpipe,unixbench" |
38 for SITE_TEST in ../third_party/autotest/files/client/site_tests/* | 38 for SITE_TEST in ../third_party/autotest/files/client/site_tests/* |
39 do | 39 do |
40 if [ -d ${SITE_TEST} ] | 40 if [ -d ${SITE_TEST} ] |
41 then | 41 then |
42 ALL_TESTS="${ALL_TESTS},${SITE_TEST:48}" | 42 ALL_TESTS="${ALL_TESTS},${SITE_TEST:48}" |
43 fi | 43 fi |
44 done | 44 done |
45 | 45 |
46 if [ ${FLAGS_build} == ${DEFAULT_TESTS_LIST} ] | 46 if [ ${FLAGS_build} == ${DEFAULT_TESTS_LIST} ] |
47 then | 47 then |
(...skipping 11 matching lines...) Expand all Loading... |
59 exit 0 | 59 exit 0 |
60 fi | 60 fi |
61 fi | 61 fi |
62 TEST_LIST=${ALL_TESTS} | 62 TEST_LIST=${ALL_TESTS} |
63 else | 63 else |
64 TEST_LIST=${FLAGS_build} | 64 TEST_LIST=${FLAGS_build} |
65 fi | 65 fi |
66 | 66 |
67 GCLIENT_ROOT="${GCLIENT_ROOT}" TEST_LIST=${TEST_LIST} \ | 67 GCLIENT_ROOT="${GCLIENT_ROOT}" TEST_LIST=${TEST_LIST} \ |
68 "emerge-${FLAGS_board}" chromeos-base/autotest | 68 "emerge-${FLAGS_board}" chromeos-base/autotest |
OLD | NEW |